Skip to content
PluginStats

vite-plugin-imagemin weekly downloads statistics

By anncwb (3 listings) · npm · Vite plugins

A vite plugin for compressing image assets

View on npm Fresh · Dec 6, 2026

vite-plugin-imagemin has 20,475 recorded weekly downloads on npm, an increase of 19.0% over the past 30 days, ranking #1031 of 3,247 tracked listings.

Weekly downloads
20,475
Official API · Dec 5, 2026
7-day growth
+19.2%
+3.3K weekly downloads
30-day growth
+19.0%
+3.3K weekly downloads
90-day growth
-1.0%
-209 weekly downloads
Rank
#1031
▲ 42 in 7 days

About vite-plugin-imagemin

vite-plugin-imagemin

English | 中文

npm node

A vite plugin for compressing image assets

Install (yarn or npm)

node version: >=12.0.0

vite version: >=2.0.0

yarn add vite-plugin-imagemin -D

or

npm i vite-plugin-imagemin -D
China installation note

Because imagemin is not easy to install in China. Several solutions are now available

  1. Use yarn to configure in package.json (recommended)
"resolutions": {
    "bin-wrapper": "npm:bin-wrapper-china"
  },

  1. Use npm, add the following configuration to the computer host file

199.232.4.133 raw.githubusercontent.com
  1. Install with cnpm (not recommended)

Usage

  • Configuration plugin in vite.config.ts
import viteImagemin from 'vite-plugin-imagemin';

export default () => {
  return {
    plugins: [
      viteImagemin({
        gifsicle: {
          optimizationLevel: 7,
          interlaced: false,
        },
        optipng: {
          optimizationLevel: 7,
        },
        mozjpeg: {
          quality: 20,
        },
        pngquant: {
          quality: [0.8, 0.9],
          speed: 4,
        },
        svgo: {
          plugins: [
            {
              name: 'removeViewBox',
            },
            {
              name: 'removeEmptyAttrs',
              active: false,
            },
          ],
        },
      }),
    ],
  };
};
Options
paramstypedefaultdefault
verbosebooleantrueWhether to output the compressed result in the console
filterRegExp or (file: string) => boolean-Specify which resources are not compressed
disablebooleanfalseWhether to disable
svgoobject or false-See Options
gifsicleobject or false-See Options
mozjpegobject or false-See Options
optipngobject or false-See Options
pngquantobject or false-See Options
webpobject or false-See Options

Example

Run Example


cd ./example

yarn install

yarn build

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-imagemin weekly downloads on npm, last 90 days: 20,475 weekly downloads as of Dec 5, 2026, -1.0% over 90 days.vite-plugin-imageminWeekly downloads on npm · Last 90 days20,475downloads / week-1.0% over 90 days05K10K15K20K25KSep 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-imagemin weekly downloads on npm, last 90 days: 20,475 weekly downloads as of Dec 5, 2026, -1.0% over 90 days.

7/30/90-day growth

vite-plugin-imagemin weekly downloads growth on npm: +19.2% over 7 days, +19.0% over 30 days, -1.0% over 90 days.vite-plugin-imageminWeekly downloads growth on npm20,475downloads / week now7-day growth+3,292 weekly downloads+19.2%30-day growth+3,271 weekly downloads+19.0%90-day growth-209 weekly downloads-1.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
vite-plugin-imagemin weekly downloads growth on npm: +19.2% over 7 days, +19.0% over 30 days, -1.0% over 90 days.

Ranking history

vite-plugin-imagemin npm ranking history: currently #1031 (by weekly downloads).vite-plugin-imageminnpm ranking · by weekly downloads · Last 90 days#1031current rank#200#400#600#800#1000#1200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
vite-plugin-imagemin npm ranking history: currently #1031 (by weekly downloads).

Listing placement

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

Listing placement

Vite plugins300 listings · 15 pages · page 10, #1 (overall #181)
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-imagemin
Date (UTC)Weekly downloadsChange vs. previous
20,475+517
19,958+285
19,673+1.2K
18,428+751
17,677+222
17,455+205
17,250+67
17,183+673
16,510+655
15,855+246
15,609+569
15,040+246
14,794+233
14,561—

Similar npm Vite plugins plugins

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