H5-contact/node_modules/@vitejs/plugin-basic-ssl
whitechiina 753b079311 first commit 2026-08-20 15:54:28 +08:00
..
dist first commit 2026-08-20 15:54:28 +08:00
LICENSE first commit 2026-08-20 15:54:28 +08:00
README.md first commit 2026-08-20 15:54:28 +08:00
package.json first commit 2026-08-20 15:54:28 +08:00

README.md

@vitejs/plugin-basic-ssl npm

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