vite-plugin-html-config
JSON →A Vite plugin (v2.0.2) for injecting HTML tags (meta, link, script, style) into the index.html at build time. It uses Vite's transformIndexHtml hook and supports configurable head/body scripts with both string and object-based attributes. Unlike raw transformIndexHtml hooks, it provides a declarative, environment-aware API for conditionally adding tags. Requires Vite >=5.0.0. Currently in active development with support for Vite 3–5.
Traffic · last 30 days stale · no recent hits
total hits 17
actors 6 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France · 🇬🇧 United Kingdom
Resources
API endpoints
full doc /v1/registry/vite-plugin-html-config
compatibility /v1/registry/vite-plugin-html-config/compatibility