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 Fresh · Dec 6, 2026

vite-plugin-compression has 703,686 recorded weekly downloads on npm, a decrease of 7.1% over the past 30 days, ranking #333 of 3,247 tracked listings.

Weekly downloads
703,686
Official API · Dec 5, 2026
7-day growth
+3.0%
+20.4K weekly downloads
30-day growth
-7.1%
-53.5K weekly downloads
90-day growth
+37.4%
+191.6K weekly downloads
Rank
#333
▼ 11 in 7 days

About vite-plugin-compression

vite-plugin-compression

English | 中文

npm node

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

yarn add vite-plugin-compression -D

or

npm i vite-plugin-compression -D

Usage

  • Configuration plugin in vite.config.ts
import viteCompression from 'vite-plugin-compression';

export default () => {
  return {
    plugins: [viteCompression()],
  };
};
Options
paramstypedefaultdefault
verbosebooleantrueWhether to output the compressed result in the console
filterRegExp or (file: string) => booleanDefaultFilterSpecify which resources are not compressed
disablebooleanfalseWhether to disable
thresholdnumber1025It will be compressed if the volume is larger than threshold, the unit is b
algorithmstringgzipCompression algorithm, optional ['gzip','brotliCompress' ,'deflate','deflateRaw']
extstring.gzSuffix of the generated compressed package
compressionOptionsobject-The parameters of the corresponding compression algorithm
deleteOriginFileboolean-Whether to delete source files after compression

DefaultFilter

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

Example

Run Example


cd ./example

yarn install

yarn test:gzip

yarn test:br

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: 703,686 weekly downloads as of Dec 5, 2026, +37.4% over 90 days.vite-plugin-compressionWeekly downloads on npm · Last 90 days703,686downloads / week+37.4% over 90 days0200K400K600K800KSep 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-compression weekly downloads on npm, last 90 days: 703,686 weekly downloads as of Dec 5, 2026, +37.4% over 90 days.

7/30/90-day growth

vite-plugin-compression weekly downloads growth on npm: +3.0% over 7 days, -7.1% over 30 days, +37.4% over 90 days.vite-plugin-compressionWeekly downloads growth on npm703,686downloads / week now7-day growth+20,356 weekly downloads+3.0%30-day growth-53,540 weekly downloads-7.1%90-day growth+191,571 weekly downloads+37.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-compression weekly downloads growth on npm: +3.0% over 7 days, -7.1% over 30 days, +37.4% over 90 days.

Ranking history

vite-plugin-compression npm ranking history: currently #333 (by weekly downloads).vite-plugin-compressionnpm ranking · by weekly downloads · Last 90 days#333current rank#290#300#310#320#330#340Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-compression npm ranking history: currently #333 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 3, #6 (overall #46)
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 (170)
Recent weekly downloads observations for vite-plugin-compression
Date (UTC)Weekly downloadsChange vs. previous
703,686-1.2K
704,899+16.3K
688,587+13.6K
674,946-12.7K
687,623+6.9K
680,729-969
681,698-1.6K
683,330-3.5K
686,786-26.6K
713,346-24.3K
737,661+3.9K
733,736+153
733,583-4.4K
738,025—

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 Dec 6, 2026. See the methodology.