Vite Plugin Watch Env
JSON →A Vite plugin that loads .env files into process.env and watches for file changes to automatically reload the environment. v1.0.1 is current stable. It provides two functions: loadEnv to load a .env file synchronously at config time, and watchEnv to add the Vite plugin that triggers re-serve when the .env file changes. Lightweight, TypeScript-ready, alternative to dotenv for Vite projects that need hot-reload on env changes.
Traffic · last 30 days ↑50% vs prev 7d
total hits 11
actors 3 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇵🇰 Pakistan · 🇪🇸 Spain · 🇬🇧 United Kingdom
Resources
API endpoints
full doc /v1/registry/vite-plugin-watch-env