Skip to content
PluginStats

vite-plugin-html-minifier weekly downloads statistics

By erm1116 · npm · Vite plugins

HTML minifier plugin for Vite

View on npm Fresh · Dec 6, 2026

vite-plugin-html-minifier has 46,344 recorded weekly downloads on npm, a decrease of 34.1% over the past 30 days, ranking #807 of 3,247 tracked listings.

Weekly downloads
46,344
Official API · Dec 5, 2026
7-day growth
+0.5%
+224 weekly downloads
30-day growth
-34.1%
-24K weekly downloads
90-day growth
+324%
+35.4K weekly downloads
Rank
#807
▼ 30 in 7 days

About vite-plugin-html-minifier

vite-plugin-html-minifier

HTML minifier plugin for Vite

Usage

npm install -D vite-plugin-html-minifier
// vite.config.ts
import htmlMinifier from 'vite-plugin-html-minifier'

export default defineConfig({
  plugins: [
    htmlMinifier({
      minify: true,
    }),
  ],
})

Options

ParameterTypeDefaultDescription
minifyboolean|MinifyOptionstruehtml minify option
filter RegExp|string|((fileName: string) => boolean)-target file filter
minify
  • Type: boolean | MinifyOptions

  • Default: true

    {
        collapseWhitespace: true,
        keepClosingSlash: true,
        removeComments: true,
        removeRedundantAttributes: true,
        removeScriptTypeAttributes: true,
        removeStyleLinkTypeAttributes: true,
        removeEmptyAttributes: true,
        useShortDoctype: true,
        minifyCSS: true,
        minifyJS: true,
        minifyURLs: true,
    }
    

    MinifierOptions is same as html-minifier-terser options.

filter
  • Type: RegExp | string | ((fileName: string) => boolean)
  • Default: None (All entry point files will be matched)

Description from the npm listing.

  • vite-plugin
  • html
  • minify

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

vite-plugin-html-minifier weekly downloads on npm, last 90 days: 46,344 weekly downloads as of Dec 5, 2026, +324% over 90 days.vite-plugin-html-minifierWeekly downloads on npm · Last 90 days46,344downloads / week+324% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
vite-plugin-html-minifier weekly downloads on npm, last 90 days: 46,344 weekly downloads as of Dec 5, 2026, +324% over 90 days.

7/30/90-day growth

vite-plugin-html-minifier weekly downloads growth on npm: +0.5% over 7 days, -34.1% over 30 days, +324% over 90 days.vite-plugin-html-minifierWeekly downloads growth on npm46,344downloads / week now7-day growth+224 weekly downloads+0.5%30-day growth-24,013 weekly downloads-34.1%90-day growth+35,405 weekly downloads+324%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-html-minifier weekly downloads growth on npm: +0.5% over 7 days, -34.1% over 30 days, +324% over 90 days.

Ranking history

vite-plugin-html-minifier npm ranking history: currently #807 (by weekly downloads).vite-plugin-html-minifiernpm ranking · by weekly downloads · Last 90 days#807current rank#300#400#500#600#700#800#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-html-minifier npm ranking history: currently #807 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 41, #7 (overall #807)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins300 listings · 15 pages · page 7, #20 (overall #140)
Vite plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (591)
Recent weekly downloads observations for vite-plugin-html-minifier
Date (UTC)Weekly downloadsChange vs. previous
46,344-816
47,160+973
46,187-19
46,206-768
46,974+2.8K
44,138-1.9K
46,007-113
46,120+580
45,540+584
44,956-1.4K
46,353-952
47,305-464
47,769-2.5K
50,249—

Similar npm Vite plugins plugins

All 20 vite-plugin-html-minifier alternatives

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-minifier. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.