1.0.4 • Published 11 months ago

vite-plugin-devcert v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

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: ''
            }
        }),
    ]
};
1.0.4

11 months ago

1.0.3

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago

1.0.0-beta1

11 months ago

1.0.0-beta

11 months ago