An open API service indexing awesome lists of open source software.

https://github.com/webdeveric/webpack-serve-certificate-creator

webpack plugin to generate SSL certificate for local development
https://github.com/webdeveric/webpack-serve-certificate-creator

certificate https selfsigned ssl webpack webpack-dev-server

Last synced: 2 months ago
JSON representation

webpack plugin to generate SSL certificate for local development

Awesome Lists containing this project

README

        

# `WebpackServeCertificateCreator`

[![Node.js CI](https://github.com/webdeveric/webpack-serve-certificate-creator/actions/workflows/node.js.yml/badge.svg)](https://github.com/webdeveric/webpack-serve-certificate-creator/actions/workflows/node.js.yml)

## Install

```sh
pnpm add webpack-serve-certificate-creator -D
```

```sh
npm install webpack-serve-certificate-creator -D
```

## Usage

Import the plugin in your webpack config.

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

Add the plugin to your `plugins`.

```ts
{
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,
},
}),
];
}
```