vite-plugin-devcert
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

vite-plugin-devcert

npm i vite-plugin-devcert
// vite.config.js
import devcert from 'vite-plugin-devcert';

export default {
    plugins: [
        devcert(),
    ]
};

The default domain is localhost. If you want to customize it, you can set it through domain

// vite.config.js
import devcert from 'vite-plugin-devcert';

export default {
    plugins: [
        devcert({
            domain: 'test.com'
        }),
    ]
};

If you want to pass in your own HTTPS certificate, please do so here

// vite.config.js
import devcert from 'vite-plugin-devcert';

export default {
    plugins: [
        devcert({
            ssl: {
                key: '',
                cert: ''
            }
        }),
    ]
};

Package Sidebar

Install

npm i vite-plugin-devcert

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • xinup2