vite-plugin-pug weekly downloads statistics
By SubZtep · npm · Vite plugins
Vite plugin for transform Pug templates into HTML
vite-plugin-pug has 6,048 recorded weekly downloads on npm, a decrease of 62.8% over the past 30 days.
It ranks #1041 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -78.1%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About vite-plugin-pug
vite-plugin-pug
A plugin that makes Vite parse in your index.html. The rendered template replaces this tag with the compiled markup.
:information_source: Vue single file components don’t require this plugin, adding Pug to the dependency list is enough. — aka npm i -D pug
Features
• [x] CommonJS and ES module builds. • [x] Handle self-closing pug tags. • [x] Works with multiple pug tags. • [x] Generated _TypeScript_ declarations. • [x] Reload when saving changes on a .pug file. • [x] Support Pug local variables. • [x] Templates for multiple inputs. • [ ] _Experimental hot module reloading functionality._ • [ ] _Handle adding or removing files._
Add to a project
Installation
Choose your appropriate choice:
Configuration
Create a vite.config.js configuration file and import the plugin:
Plugin Parameters
| Name | Required | Description |
| options | optional | Plugin options object. | | locals | optional | Data object with Pug locals. |
Plugin Options
| Name | Required | Description |
| ... | optional | Anything from Pug options object. | | localImports | optional | If true, use relative imports in the pug src attribute. |
Usage
Simple
Create a template file.
Embed pug tag with src attribute somewhere.
That's it.
:bulb: Check out its starter implementation in this repository.
Examples
Please find the examples folder in this repository.
Contribution
~~After Rollup~~ I started to use _Vite_ recently but this is not a reason to leave my beloved template format behind. Its lack of active Pug plugins made me make one quickly. It does the job to me, I will extend it when I need it. :suspect:
If it doesn't match with your setup please start a new discussion about it, I'm interested to see other workflows. If something is simply not working, please raise an issue. PRs certainly welcome! (.❛ ᴗ ❛.)
Description from the npm listing.
- vite
- vite-plugin
- pug
- jade
Where vite-plugin-pug 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 (121)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-pug. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.