vite-plugin-compression weekly downloads statistics
By anncwb (3 listings) · npm · Vite plugins
Use gzip or brotli to compress resources.
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.
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Vite plugins plugins
All 20 vite-plugin-compression alternativesData 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.