@vitejs/plugin-basic-ssl
v1.2.0
Published
A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.
Downloads
9,515,842
Readme
@vitejs/plugin-basic-ssl
A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.
In most scenarios, it is recommended to generate a secure trusted certificate instead and use it to configure server.https
Usage
// vite.config.js
import basicSsl from '@vitejs/plugin-basic-ssl'
export default {
plugins: [
basicSsl({
/** name of certification */
name: 'test',
/** custom trust domains */
domains: ['*.custom.com'],
/** custom certification directory */
certDir: '/Users/.../.devServer/cert'
})
]
}
License
MIT