vite-plugin-html-inject weekly downloads statistics
By donnikitos · npm · Vite plugins
Split your index.html into multiple files and inject them where ever you want!
vite-plugin-html-inject has 5,861 recorded weekly downloads on npm, a decrease of 42.8% over the past 30 days.
It ranks #1046 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -16.9%.
PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.
About vite-plugin-html-inject
vite-plugin-html-inject
Split your index.html into smaller, reusable static HTML pieces.
Load those sweet separate HTML files
Pass down static arguments to injected HTML parts
The plugin also allows you to supply your HTML parts with some basic arguments, so you can reuse the same piece of code in multiple places.
For example you can reuse a similarly styled link somewhere in your index.html:
And that src/some-static-link.htm:
This will result in a dev and runtime generated index.html looking like
Customization
You are able to customize the loader tag name and the source attribute name.\ For example a configuration like:
will replace:
Debugging
By default the debugging option is turned off. However, if you encounter issues loading files, you can turn on path logging.
Support
Love open source? Enjoying my project?\ Your support can keep the momentum going! Consider a donation to fuel the creation of more innovative open source software.
| via Ko-Fi | Buy me a coffee | via PayPal |
| | | |
Description from the npm listing.
- vite
- vite-plugin
- load html
- split html
- inject html
- html
- html-loader
- loader
Where vite-plugin-html-inject sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (542)Similar npm Vite plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-html-inject. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.