@montagejs/issue-cert
v0.0.2
Published
issue cert
Downloads
4
Readme
@montagejs/issue-cert
Add ssl certificate for website link.
Install
$ pnpm i @montagejs/issue-cert
Usage
import mkcert from '@montagejs/issue-cert';
export default () => {
async function getConfig() {
const { cert, key } = await mkcert.run()
return {
mode: 'development',
devServer: {
https: {
key,
cert,
passphrase: 'webpack-dev-server',
requestCert: true,
},
},
}
}
return getConfig();
}