1.0.4 • Published 2 years ago
vite-plugin-devcert v1.0.4
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
2 years ago
1.0.3
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-beta1
2 years ago
1.0.0-beta
2 years ago