JSPM

webpack-serve-certificate-creator

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 79
  • Score
    100M100P100Q75796F
  • License MIT

webpack plugin to generate SSL certificate for local development

Package Exports

  • webpack-serve-certificate-creator
  • webpack-serve-certificate-creator/package.json
  • webpack-serve-certificate-creator/plugin
  • webpack-serve-certificate-creator/types
  • webpack-serve-certificate-creator/utils

Readme

WebpackServeCertificateCreator

Node.js CI

Install

pnpm add webpack-serve-certificate-creator -D
npm install webpack-serve-certificate-creator -D

Usage

Import the plugin in your webpack config.

import { WebpackServeCertificateCreator } from 'webpack-serve-certificate-creator';

Add the plugin to your plugins.

{
  plugins: [
    new WebpackServeCertificateCreator({
      // This dir should be added to .gitignore
      outDir: '.certificate-cache',
      // Defaults to `localhost`
      commonName: 'your.hostname.example.com',
      options: {
        days: 365,
        keySize: 4096,
      },
    }),
  ];
}