Skip to content
PluginStats

vite-plugin-pug weekly downloads statistics

By SubZtep · npm · Vite plugins

Vite plugin for transform Pug templates into HTML

View on npm Fresh · Oct 17, 2026

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.

Weekly downloads
6,048
Official API · Oct 17, 2026
7-day growth
-58.1%
-8.4K weekly downloads
30-day growth
-62.8%
-10.2K weekly downloads
90-day growth
-78.1%
-21.6K weekly downloads
Rank
#1041
Among tracked npm listings

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.

All npm2,256 listings · 113 pages · page 53, #1 (overall #1041)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 10, #1 (overall #181)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-pug weekly downloads on npm, last 90 days: 6,048 weekly downloads as of Oct 17, 2026, -78.1% over 90 days.vite-plugin-pugWeekly downloads on npm · Last 90 days6,048downloads / week-78.1% over 90 days05K10K15K20K25K30KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
vite-plugin-pug weekly downloads on npm, last 90 days: 6,048 weekly downloads as of Oct 17, 2026, -78.1% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-pug weekly downloads growth on npm: -58.1% over 7 days, -62.8% over 30 days, -78.1% over 90 days.vite-plugin-pugWeekly downloads growth on npm6,048downloads / week now7-day growth-8,390 weekly downloads-58.1%30-day growth-10,209 weekly downloads-62.8%90-day growth-21,586 weekly downloads-78.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-pug weekly downloads growth on npm: -58.1% over 7 days, -62.8% over 30 days, -78.1% over 90 days.
PNG SVG

Ranking history

vite-plugin-pug npm ranking history: currently #1041 (by weekly downloads).vite-plugin-pugnpm ranking · by weekly downloads · Last 90 days#1041current rank#1037#1038#1039#1040#1041#1042#1043Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-pug npm ranking history: currently #1041 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for vite-plugin-pug
Date (UTC)Weekly downloadsChange vs. previous
6,048-436
6,484+333
6,151-3.5K
9,608-4K
13,6010
13,601-932
14,533+95
14,438-105
14,543+198
14,345+631
13,714+496
13,218-5.1K
18,308-1K
19,320—

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.