0.2.1 • Published 5 months ago

@idleberg/vite-plugin-devcert v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@idleberg/vite-plugin-devcert

A Vite plugin to generate trusted SSL/TLS certificates for local development.

License Version: npm Version: jsr CI: Node CI: Deno

!IMPORTANT This plugin is based on @expo/devcert, an actively maintained fork of devcert. Read about how it works and its implications on security.

Installation

On NodeJS or Bun, install the plugin and its peer dependencies from npm:

npm install @idleberg/vite-plugin-devcert @expo/devcert

On Deno you will likely want to use JSR:

deno add jsr:@idleberg/vite-plugin-devcert npm:@expo/devcert

Usage

import { defineConfig } from "vite";
import devCert from "@idleberg/vite-plugin-devcert";

export default defineConfig({
	plugins: [devCert()],
});

API

devCert(options?)

Options

options.skipHostsFile

If certutil is not installed already (for updating NSS databases; e.g. Firefox), do not attempt to install it. Read the documentation for more.

options.skipCertutil

Do not update your systems host file with the domain name of the certificate. Read the documentation for more.

Related

License

This work is licensed under The MIT License.

0.2.1

5 months ago

0.2.0

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago