vite-plugin-runtime
JSON →A Vite plugin that replaces `import.meta.env.VITE_*` with `window.env.*` at build time for flexible runtime environment variable injection. Current stable version is 1.4.0 (July 2024). Releases are active with a new minor/patch version every few months, adding features like `envsubstTemplate` and `injectHtml`. Key differentiators: eliminates the VITE_ prefix requirement, generates runtime env.js files, supports type generation, and can inject HTML scripts. Requires Node >=18 and any version of Vite. Peer dependency on Vite is required.
Traffic · last 30 days stale · no recent hits
total hits 17
actors 5 distinct systems
last hit 25d ago AhrefsBot
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · VN · BD
Resources
API endpoints
full doc /v1/registry/vite-plugin-runtime
compatibility /v1/registry/vite-plugin-runtime/compatibility