minimizer-webpack-plugin weekly downloads statistics
By webpack (4 listings) · npm · Webpack plugins
Minimizer plugin for webpack
minimizer-webpack-plugin has 26,418,554 recorded weekly downloads on npm, an increase of 12.0% over the past 30 days, ranking #114 of 3,247 tracked listings.
About minimizer-webpack-plugin
[![npm][npm]][npm-url] [![node][node]][node-url] [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![discussion][discussion]][discussion-url] [![size][size]][size-url]
minimizer-webpack-plugin
This plugin minifies your assets in a webpack build. It ships with several
built-in minimizers covering JavaScript, JSON, HTML, CSS, and images — pick one
with the minify option and target the right files with
test.
JavaScript minimizers:
terser—MinimizerPlugin.terserMinify(default). The same JavaScript-based minifier that webpack uses out of the box; produces small, well-tested output and supports the full set ofextractCommentsmodes.uglify-js—MinimizerPlugin.uglifyJsMinify. ES5-only minifier, useful when you specifically need UglifyJS-compatible output. Requiresnpm install --save-dev uglify-js.@swc/core—MinimizerPlugin.swcMinify. A very fast Rust-based JavaScript/TypeScript minifier. Requiresnpm install --save-dev @swc/core.esbuild—MinimizerPlugin.esbuildMinify. An extremely fast JS bundler/minifier; legal comments are always preserved (noextractCommentssupport). Requiresnpm install --save-dev esbuild.
JSON minimizer:
JSON.stringify—MinimizerPlugin.jsonMinify. Built in (no extra dependency); supportsspaceandreplaceroptions.
HTML minimizers:
- webpack's own —
webpack.html.syntax.htmlMinify. Ships with webpack (>= 5.111.0), so it needs no extra dependency, and it is the one that minifies what a document nests: an inline<style>, everystyle="", a<script>, an<svg>subtree. See webpack's own minimizers. html-minifier-terser—MinimizerPlugin.htmlMinifierTerser. JavaScript-based, no native dependency. Requiresnpm install --save-dev html-minifier-terser.@swc/html—MinimizerPlugin.swcMinifyHtml(full HTML documents) andMinimizerPlugin.swcMinifyHtmlFragment(HTML fragments, e.g.<template>content). Very fast Rust-based platform for the Web. Requiresnpm install --save-dev @swc/html.@minify-html/node—MinimizerPlugin.minifyHtmlNode. A Rust HTML minifier optimised for speed and effectiveness. Requiresnpm install --save-dev @minify-html/node.
CSS minimizers:
- webpack's own —
webpack.css.syntax.cssMinify. Ships with webpack (>= 5.111.0), so it needs no extra dependency, and it minifies the CSS a stylesheet or a document nests. See webpack's own minimizers. cssnano—MinimizerPlugin.cssnanoMinify. Built on top of PostCSS. Requiresnpm install --save-dev cssnano postcss.csso—MinimizerPlugin.cssoMinify. A CSS minifier with structural optimisations. Requiresnpm install --save-dev csso.clean-css—MinimizerPlugin.cleanCssMinify. A widely-used CSS optimiser. Requiresnpm install --save-dev clean-css.esbuild—MinimizerPlugin.esbuildMinifyCss. Very fast CSS minification using esbuild's CSS loader. Requiresnpm install --save-dev esbuild.lightningcss—MinimizerPlugin.lightningCssMinify. A Rust-based CSS parser, transformer, and minifier. Requiresnpm install --save-dev lightningcss.@swc/css—MinimizerPlugin.swcMinifyCss. A very fast Rust-based CSS minifier. Requiresnpm install --save-dev @swc/css.
Image minimizers:
sharp—MinimizerPlugin.sharpMinify. Re-encodes an image as the format its name already claims (avif,gif,heif,jp2,jpeg,png,tiff,webp), and can resize, rotate, flip, grayscale, blur or sharpen on the way — from the options or from the asset's own name. Requiresnpm install --save-dev sharp.svgo—MinimizerPlugin.svgoMinify. Minifies SVG, including anasset/inlineorasset/sourceSVG that notestcan match. Requiresnpm install --save-dev svgo.imagemin—MinimizerPlugin.imageminMinify. Runs theimageminplugins you name. Requiresnpm install --save-dev imageminplus each plugin. Pair it withMinimizerPlugin.imageminGenerateundergeneratewhen a plugin converts the format, since only that can rename the asset.@napi-rs/image—MinimizerPlugin.napiRsImageMinify. Rust codecs with no system dependency; recompressespnglosslessly with oxipng andjpegwith mozjpeg, and can resize, turn, mirror, grayscale, invert or blur on the way — from the options or from the asset's own name. Requiresnpm install --save-dev @napi-rs/image.
These only minify — they never change an image's format or name; see Images.
Transport encodings:…
Description from the npm listing.
- avif
- clean-css
- compress
- compressor
- css
- cssnano
- csso
- esbuild
- html
- html-minifier
- html-minifier-terser
- image
- imagemin
- images
- jpeg
- lightningcss
- min
- minification
- minifier
- 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
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 (592)Similar npm Webpack plugins plugins
All 20 minimizer-webpack-plugin 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/minimizer-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.