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 ↓50% vs prev 7d
total hits 12
actors 4 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇮🇹 Italy · 🇫🇷 France
Resources
API endpoints
full doc /v1/registry/vite-plugin-html-config