Webpack plugin that provides HTTPS certificates for local development using mkcert. Version 1.0.3, maintained with monthly releases. Unlike manual certificate setups, it automates mkcert download and CA installation, supports multiple hosts (localhost, 127.0.0.1, custom domains), and includes a China mirror for faster downloads. Ships TypeScript types and requires Node >=16.
npm install webpack-mkcertVerified import paths — ran on the pinned version, not inferred.
Configures a Vue CLI Webpack dev server to use HTTPS with certificates generated by mkcert.
Use async/await or .then() when calling webpackMkcert().
Set source to 'coding' for China mirror or provide a local mkcertPath.
Remove force option; certificates are auto-regenerated when hosts change.
Wrap the config export in an async function as shown in the quickstart.
Update your code to handle Buffer objects if you process them directly.
To remove CA certificates, run mkcert -uninstall manually.
Run 'npm install webpack-mkcert' and use ES import: import webpackMkcert from 'webpack-mkcert'.
Use 'import webpackMkcert from 'webpack-mkcert'' (ESM) instead of 'const webpackMkcert = require('webpack-mkcert')'.Set option 'source: 'coding'' for China mirror, or provide 'mkcertPath' to a local mkcert binary.
Run 'mkcert -install' to install the local CA root certificate, or use the plugin's mkcert installation.