vite-plugin-caddy

⚑ A vite plugin to enable automagic HTTPS for local development with caddy server

MIT License

Downloads
31
Stars
13

vite-plugin-caddy

[!WARNING] THIS PLUGIN IS HIGHLY EXPERIMENTAL AND UNSTABLE, USE WITH CAUTION

Usage

// vite.config.js
import { defineConfig } from "vite";
import caddyTls from "vite-plugin-caddy";

const config = defineConfig({
  plugins: [
    caddyTls({
      domains: ["this.is.cool.localhost", "something-else.localhost"],
    })
  ]
});

export default config;

Will give this in the terminal, allow you to connect to your app on HTTPS with a self-signed and trusted cert.

> vite


πŸ”’ Caddy is running to proxy your traffic on https

πŸ”— Access your local servers 
🌍 https://this.is.cool.localhost
🌍 https://something-else.localhost

Contributing

See CONTRIBUTING.md to see how to get started.

License

MIT

Package Rankings
Top 40.21% on Npmjs.org