Skip to content
PluginStats

terser-webpack-plugin-legacy weekly downloads statistics

By webpack-contrib (7 listings) · npm · Webpack plugins

Terser plugin for webpack

View on npm Stale · Oct 17, 2026

terser-webpack-plugin-legacy has 1,430 recorded weekly downloads on npm, a decrease of 38.1% over the past 30 days, ranking #1329 of 2,256 tracked listings.

Weekly downloads
1,430
Official API · Oct 17, 2026
7-day growth
-43.3%
-1.1K weekly downloads
30-day growth
-38.1%
-880 weekly downloads
90-day growth
-54.7%
-1.7K weekly downloads
Rank
#1329
Among tracked npm listings

About terser-webpack-plugin-legacy

[![npm][npm]][npm-url] [![node][node]][node-url] [![deps][deps]][deps-url] [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![chat][chat]][chat-url] [![size][size]][size-url]

terser-webpack-plugin-legacy

This plugin uses terser to minify your JavaScript.

Requirements

This module requires a minimum of Node v6.9.0 and Webpack v3.0.0.

Webpack v4 users should use the non-legacy terser-webpack-plugin.

Getting Started

To begin, you'll need to install terser-webpack-plugin-legacy:

Then add the plugin to your webpack config. For example:

webpack.config.js

And run webpack via your preferred method.

Options

test

Type: String|RegExp|Array Default: /.m?js(?.*)?$/i

Test to match files against.

webpack.config.js

include

Type: String|RegExp|Array Default: undefined

Files to include.

webpack.config.js

exclude

Type: String|RegExp|Array Default: undefined

Files to exclude.

webpack.config.js

chunkFilter

Type: Function boolean> Default: () => true

Allowing to filter which chunks should be uglified (by default all chunks are uglified). Return true to uglify the chunk, false otherwise.

webpack.config.js

cache

Type: Boolean|String Default: false

Enable file caching. Default path to cache directory: node_modules/.cache/terser-webpack-plugin.

ℹ️ If you use your own minify function please read the minify section for cache invalidation correctly.

Boolean

Enable/disable file caching.

webpack.config.js

String

Enable file caching and set path to cache directory.

webpack.config.js

cacheKeys

Type: Function Object> Default: defaultCacheKeys => defaultCacheKeys

Allows you to override default cache keys.

Default cache keys:

webpack.config.js

parallel

Type: Boolean|Number Default: false

Use multi-process parallel running to improve the build speed. Default number of concurrent runs: os.cpus().length - 1.

ℹ️ Parallelization can speedup your build significantly and is therefore highly recommended.

Boolean

Enable/disable multi-process parallel running.

webpack.config.js

Number

Enable multi-process parallel running and set number of concurrent runs.

webpack.config.js

sourceMap

Type: Boolean Default: false

Use source maps to map error message locations to modules (this slows down the compilation). If you use your own minify function please read the minify section for handling source maps correctly.

⚠️ cheap-source-map options don't work with this plugin.

webpack.config.js

minify

Type: Function Default: undefined

Allows you to override default minify function. By default plugin uses terser package. Useful for using and testing unpublished versions or forks.

⚠️ Always use require inside minify function when parallel option enabled.

webpack.config.js

terserOptions

Type: Object Default: default

Terser minify options.

webpack.config.js

extractComments

Type: Boolean|String|RegExp|Function Boolean|Object>|Object Default: false

Whether comments shall be extracted to a separate file, (see details). By default extract only comments using /^**!|@preserve|@license|@cc_on/i regexp condition and remove remaining comments. If the original file is named foo.js, then the comments will be stored to foo.js.LICENSE. The terserOptions.output.comments option specifies whether the comment will be preserved, i.e. it is possible to preserve some comments (e.g. annotations) while extracting others or even preserving comments that have been extracted.

Boolean

Enable/disable extracting comments.

webpack.config.js

String

Extract all or some (use /^**!|@preserve|@license|@cc_on/i RegExp) comments.

webpack.config.js

RegExp

All comments that match the given expression will be extracted to the separate file.

webpack.config.js

Function Boolean>

All comments that match the given expression will be extracted to the separate file.

webpack.config.js

Object

Allow to customize condition for extract comments, specify extracted file name and banner.

webpack.config.js

condition

Type: Boolean|String|RegExp|Function Boolean|Object>

Condition what comments you need extract.

webpack.config.js

filename

Type: String|Function String> Default: ${file}.LICENSE

The file where the extracted comments will be stored. Default is to append the suffix .LICENSE to the original filename.

webpack.config.js

banner

Type: Boolean|String|Function String> Default: /*! For license information please see ${commentsFile} */

The banner text that points to the extracted file and will be added on top of the original file. Can be false (no banner), a String, or a Function String> that will be called with the filename where extracted comments have been stored. Will be wrapped into comment.

webpack.config.js

warningsFilter

Type: Function Boolean> Default: () => true

Allow to filter terser warnings. Return true to keep the warning, false otherwise.

webpack.config.js

Examples

Cache And Parallel

Enable cache and multi-process parallel running.

webpack.config.js

Preserve Comments

Extract all legal comments (i.e. /^**!|@preserve|@license|@cc_on/i) and preserve /@license/i comments.

webpack.config.js

Remove Comments

If you avoid building with comments, set terserOptions.output.comments to false as in this config:

webpack.config.js

Custom Minify Function

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

webpack.config.js

Contributing

Please take a moment to read our contributing guidelines if you haven't yet done so.

CONTRIBUTING

License

MIT

Description from the npm listing.

  • uglify
  • uglify-js
  • uglify-es
  • terser
  • webpack
  • webpack-plugin
  • minification
  • compress
  • compressor
  • min
  • minifier
  • minify
  • optimize
  • optimizer

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

terser-webpack-plugin-legacy weekly downloads on npm, last 90 days: 1,430 weekly downloads as of Oct 17, 2026, -54.7% over 90 days.terser-webpack-plugin-legacyWeekly downloads on npm · Last 90 days1,430downloads / week-54.7% over 90 days01K2K3K4K5KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
terser-webpack-plugin-legacy weekly downloads on npm, last 90 days: 1,430 weekly downloads as of Oct 17, 2026, -54.7% over 90 days.

7/30/90-day growth

terser-webpack-plugin-legacy weekly downloads growth on npm: -43.3% over 7 days, -38.1% over 30 days, -54.7% over 90 days.terser-webpack-plugin-legacyWeekly downloads growth on npm1,430downloads / week now7-day growth-1,094 weekly downloads-43.3%30-day growth-880 weekly downloads-38.1%90-day growth-1,726 weekly downloads-54.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
terser-webpack-plugin-legacy weekly downloads growth on npm: -43.3% over 7 days, -38.1% over 30 days, -54.7% over 90 days.

Ranking history

terser-webpack-plugin-legacy npm ranking history: currently #1329 (by weekly downloads).terser-webpack-plugin-legacynpm ranking · by weekly downloads · Last 90 days#1329current rank#1325#1326#1327#1328#1329#1330#1331Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
terser-webpack-plugin-legacy npm ranking history: currently #1329 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 67, #10 (overall #1,330)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins247 listings · 13 pages · page 3, #4 (overall #44)
Webpack 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 (121)
Recent weekly downloads observations for terser-webpack-plugin-legacy
Date (UTC)Weekly downloadsChange vs. previous
1,430-229
1,659+73
1,586-568
2,154-528
2,6820
2,682+168
2,514-10
2,524+133
2,391+182
2,209+98
2,111-47
2,158-555
2,713-31
2,744—

Similar npm Webpack plugins plugins

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