Skip to content
PluginStats

vite-plugin-compression weekly downloads statistics

By anncwb (3 listings) · npm · Vite plugins

Use gzip or brotli to compress resources.

View on npm Stale · Oct 17, 2026

vite-plugin-compression has 277,930 recorded weekly downloads on npm, a decrease of 48.0% over the past 30 days, ranking #312 of 2,256 tracked listings.

Weekly downloads
277,930
Official API · Oct 17, 2026
7-day growth
-49.5%
-272.5K weekly downloads
30-day growth
-48.0%
-256.7K weekly downloads
90-day growth
-48.3%
-260K weekly downloads
Rank
#312
Among tracked npm listings

About vite-plugin-compression

vite-plugin-compression

English | 中文

[![npm][npm-img]][npm-url] [![node][node-img]][node-url]

Use gzip or brotli to compress resources.

Since vite-plugin-compress does not support gzip compression, a separate copy has been modified and some functions have been added.

Install (yarn or npm)

node version: >=12.0.0

vite version: >=2.0.0

or

Usage

• Configuration plugin in vite.config.ts

Options

| params | type | default | default |

| verbose | boolean | true | Whether to output the compressed result in the console | | filter | RegExp or (file: string) => boolean | DefaultFilter | Specify which resources are not compressed | | disable | boolean | false | Whether to disable | | threshold | number | 1025 | It will be compressed if the volume is larger than threshold, the unit is b | | algorithm | string | gzip | Compression algorithm, optional ['gzip','brotliCompress' ,'deflate','deflateRaw'] | | ext | string | .gz | Suffix of the generated compressed package | | compressionOptions | object | - | The parameters of the corresponding compression algorithm | | deleteOriginFile | boolean | - | Whether to delete source files after compression |

DefaultFilter

/.(js|mjs|json|css|html)$/i

Example

Run Example

Sample project

Vben Admin

License

MIT

Inspiration

vite-plugin-compress

Description from the npm listing.

  • vite
  • vite-plugin
  • imagemin
  • vben

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-compression weekly downloads on npm, last 90 days: 277,930 weekly downloads as of Oct 17, 2026, -48.3% over 90 days.vite-plugin-compressionWeekly downloads on npm · Last 90 days277,930downloads / week-48.3% over 90 days200K300K400K500K600K700KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
vite-plugin-compression weekly downloads on npm, last 90 days: 277,930 weekly downloads as of Oct 17, 2026, -48.3% over 90 days.

7/30/90-day growth

vite-plugin-compression weekly downloads growth on npm: -49.5% over 7 days, -48.0% over 30 days, -48.3% over 90 days.vite-plugin-compressionWeekly downloads growth on npm277,930downloads / week now7-day growth-272,525 weekly downloads-49.5%30-day growth-256,654 weekly downloads-48.0%90-day growth-259,959 weekly downloads-48.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-compression weekly downloads growth on npm: -49.5% over 7 days, -48.0% over 30 days, -48.3% over 90 days.

Ranking history

vite-plugin-compression npm ranking history: currently #312 (by weekly downloads).vite-plugin-compressionnpm ranking · by weekly downloads · Last 90 days#312current rank#310#311#312#313#314Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-compression npm ranking history: currently #312 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 16, #12 (overall #312)
All npm: every listing in weekly downloads order

Listing placement

Vite plugins250 listings · 13 pages · page 2, #20 (overall #40)
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 (121)
Recent weekly downloads observations for vite-plugin-compression
Date (UTC)Weekly downloadsChange vs. previous
277,930-55.1K
333,062-1.2K
334,262-122.8K
457,015-111.6K
568,6500
568,650+9.1K
559,549+9.1K
550,455+10.3K
540,199+23.8K
516,419+3.9K
512,512-10.1K
522,571-124K
646,588-17.4K
664,000—

Similar npm Vite plugins plugins

All 20 vite-plugin-compression 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-compression. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.