Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vitejs/plugin-basic-ssl

vitejs11.5mMIT2.0.0TypeScript support: included

A plugin to generate untrusted certificates which still allows to access the page after proceeding a wall with warning.

readme

@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

changelog

2.0.0 (2025-03-03)

Breaking Changes

  • only support vite 6+ and node 18+ (#69) (262fc7a)
  • remove localhost.localdomain from the certificate (#68) (15f129a)
  • remove lvh.me from the certificate (#67) (59e7d71), closes #65

1.2.0 (2024-11-27)

Bug Fixes

  • update unbuild to 2.0.0, fix type declarations for ESM (#28) (2266824), closes #24

Features

1.2.0 (2024-11-27)

Bug Fixes

  • update unbuild to 2.0.0, fix type declarations for ESM (#28) (2266824), closes #24

Features

1.1.0 (2024-01-15)

Features

1.0.2 (2023-11-16)

Features

1.0.1 (2022-12-09)

Bug Fixes

Features

  • change config hook to configResolved, avoid cacheDir different … (#4) (8df71db)

1.0.0 (2022-12-09)

  • Support Vite 3 and 4.

0.1.2 (2022-08-17)

0.1.1 (2022-07-06)

Features

  • plugin basic ssl, initial commit (c80acb5)