Skip to content
PluginStats

terser-webpack-plugin weekly downloads statistics

By webpack (4 listings) · npm · Webpack plugins

Minimizer plugin for webpack

View on npm Fresh · Oct 17, 2026

terser-webpack-plugin has 21,021,558 recorded weekly downloads on npm, a decrease of 48.2% over the past 30 days.

It ranks #64 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -54.7%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
21,021,558
Official API · Oct 17, 2026
7-day growth
-52.4%
-23.1M weekly downloads
30-day growth
-48.2%
-19.5M weekly downloads
90-day growth
-54.7%
-25.4M weekly downloads
Rank
#64
Among tracked npm listings

About terser-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, and CSS — 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 of extractComments modes. • uglify-js — MinimizerPlugin.uglifyJsMinify. ES5-only minifier, useful when you specifically need UglifyJS-compatible output. Requires npm install --save-dev uglify-js. • @swc/core — MinimizerPlugin.swcMinify. A very fast Rust-based JavaScript/TypeScript minifier. Requires npm install --save-dev @swc/core. • esbuild — MinimizerPlugin.esbuildMinify. An extremely fast JS bundler/minifier; legal comments are always preserved (no extractComments support). Requires npm install --save-dev esbuild.

JSON minimizer:

• JSON.stringify — MinimizerPlugin.jsonMinify. Built in (no extra dependency); supports space and replacer options.

HTML minimizers:

• html-minifier-terser — MinimizerPlugin.htmlMinifierTerser. The default HTML minimizer. JavaScript-based, no native dependency. Requires npm install --save-dev html-minifier-terser. • @swc/html — MinimizerPlugin.swcMinifyHtml (full HTML documents) and MinimizerPlugin.swcMinifyHtmlFragment (HTML fragments, e.g. or partial HTML strings). • MinimizerPlugin.minifyHtmlNode — uses @minify-html/node.

The HTML minimizers are optional peer dependencies — install only the one you actually use:

Note

HTML assets typically come from plugins like copy-webpack-plugin, html-webpack-plugin, or webpack's asset modules.

Note

Whitespace handling differs between tools (defaults):

- @swc/html — removes/collapses whitespace only in safe places (around html/body, inside , between // etc.). - html-minifier-terser — always collapses multiple whitespaces to a single space (never removes entirely); configurable via its options. - @minify-html/node — see its whitespace docs.

html-minifier-terser

html-minifier-terser is a JavaScript-based HTML minifier with no native dependency. It's the default HTML minimizer.

webpack.config.js

@swc/html — HTML documents

Use swcMinifyHtml for complete HTML documents (i.e. with a doctype and // tags).

webpack.config.js

@swc/html — HTML fragments

Use swcMinifyHtmlFragment for partial HTML — for example, content of tags or HTML strings that get injected into another document.

webpack.config.js

Note

The difference between swcMinifyHtml and swcMinifyHtmlFragment is the error reporting — invalid or broken syntax is reported at build time.

@minify-html/node

@minify-html/node is a Rust HTML minifier.

webpack.config.js

You can also stack multiple MinimizerPlugin instances to compress different files with different minify functions in the same build (e.g. JS with terserMinify, HTML with htmlMinifierTerser, JSON with jsonMinify).

CSS

The plugin can minify CSS assets too. Pick one of the bundled CSS minimizers and set test to match your CSS files.

Available CSS minimizers:

• MinimizerPlugin.cssnanoMinify — uses cssnano (via postcss). • MinimizerPlugin.cssoMinify — uses csso. • MinimizerPlugin.cleanCssMinify — uses clean-css. • MinimizerPlugin.esbuildMinifyCss — uses esbuild with the CSS loader. • MinimizerPlugin.lightningCssMinify — uses lightningcss. • MinimizerPlugin.swcMinifyCss — uses @swc/css.

The CSS minimizers are optional peer dependencies — install only the ones you actually use:

Note

CSS assets typically come from plugins like mini-css-extract-plugin or webpack's asset modules.

cssnano

cssnano is the default CSS minimizer. It runs as a PostCSS plugin.

webpack.config.js

csso

csso is a CSS minifier with structural optimisations.

webpack.config.js

clean-css

clean-css is a widely-used CSS optimiser.

webpack.config.js

esbuild

esbuild ships with a fast CSS minifier (used via its CSS loader).

webpack.config.js

lightningcss

lightningcss is a Rust-based CSS parser, transformer, and minifier.

webpack.config.js

@swc/css

@swc/css is a Rust-based CSS minifier.

webpack.config.js

Custom Minify Function

Override the default minify function - use uglify-js for minification.

webpack.config.js

Typescript

With default Terser minify function:

With built-in minify functions:

Contributing

We welcome all contributions! If you're new here, please take a moment to review our contributing guidelines before submitting issues or pull requests.

CONTRIBUTING

License

MIT

Description from the npm listing.

  • uglify
  • uglify-js
  • uglify-es
  • terser
  • swc
  • esbuild
  • html
  • html-minifier
  • html-minifier-terser
  • css
  • cssnano
  • csso
  • clean-css
  • lightningcss
  • webpack
  • webpack-plugin
  • minification
  • compress
  • compressor
  • min

Where terser-webpack-plugin sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 4, #4 (overall #64)
All npm: every listing in weekly downloads order
PNG SVG
Webpack plugins247 listings · 13 pages · page 1, #2 (overall #2)
Webpack plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

terser-webpack-plugin weekly downloads on npm, last 90 days: 21,021,558 weekly downloads as of Oct 17, 2026, -54.7% over 90 days.terser-webpack-pluginWeekly downloads on npm · Last 90 days21,021,558downloads / week-54.7% over 90 days20M25M30M35M40M45M50M55MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
terser-webpack-plugin weekly downloads on npm, last 90 days: 21,021,558 weekly downloads as of Oct 17, 2026, -54.7% over 90 days.
PNG SVG

7/30/90-day growth

terser-webpack-plugin weekly downloads growth on npm: -52.4% over 7 days, -48.2% over 30 days, -54.7% over 90 days.terser-webpack-pluginWeekly downloads growth on npm21,021,558downloads / week now7-day growth-23,102,200 weekly downl…-52.4%30-day growth-19,542,693 weekly downl…-48.2%90-day growth-25,400,754 weekly downl…-54.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
terser-webpack-plugin weekly downloads growth on npm: -52.4% over 7 days, -48.2% over 30 days, -54.7% over 90 days.
PNG SVG

Ranking history

terser-webpack-plugin npm ranking history: currently #64 (by weekly downloads).terser-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#64current rank#10#20#30#40#50#60#70Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
terser-webpack-plugin npm ranking history: currently #64 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (543)
Recent weekly downloads observations for terser-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
21,021,558-3.8M
24,863,923+50.5K
24,813,447-9.8M
34,637,325-9.8M
44,430,5070
44,430,507-86.5K
44,516,977+393.2K
44,123,758+321.8K
43,801,934+615.5K
43,186,417+194.4K
42,991,969+1.5K
42,990,459-9.6M
52,597,294-742.2K
53,339,498—

Similar npm Webpack plugins plugins

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/terser-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.