@montagejs/issue-cert
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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();
}

Readme

Keywords

Package Sidebar

Install

npm i @montagejs/issue-cert

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

6.05 kB

Total Files

9

Last publish

Collaborators

  • bigdreamer