Skip to content
PluginStats

css-minimizer-webpack-plugin weekly downloads statistics

By webpack (4 listings) · npm · Webpack plugins

CSS minimizer (minifier) plugin for Webpack

View on npm Fresh · Dec 6, 2026

css-minimizer-webpack-plugin has 10,696,467 recorded weekly downloads on npm, an increase of 3.5% over the past 30 days, ranking #139 of 3,247 tracked listings.

Weekly downloads
10,696,467
Official API · Dec 5, 2026
7-day growth
+11.6%
+1.1M weekly downloads
30-day growth
+3.5%
+357.3K weekly downloads
90-day growth
+37.9%
+2.9M weekly downloads
Rank
#139
▼ 3 in 7 days

About css-minimizer-webpack-plugin

<div align="center"> <a href="https://github.com/webpack/webpack"> <img width="200" height="200" src="https://webpack.js.org/assets/icon-square-big.svg"> </a> </div>

[![npm][npm]][npm-url] [![node][node]][node-url] [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![discussion][discussion]][discussion-url] [![size][size]][size-url]

css-minimizer-webpack-plugin

This plugin uses cssnano to optimize and minify your CSS.

It serves as a more accurate alternative to optimize-css-assets-webpack-plugin, with better support for source maps, assets with query strings, caching, and parallel processing.

Getting Started

To begin, you'll need to install css-minimizer-webpack-plugin:

npm install css-minimizer-webpack-plugin --save-dev

or

yarn add -D css-minimizer-webpack-plugin

or

pnpm add -D css-minimizer-webpack-plugin

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

webpack.config.js

const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

module.exports = {
  module: {
    rules: [
      {
        test: /\.s?css$/,
        use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
      },
    ],
  },
  optimization: {
    minimizer: [
      // For webpack v5, you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line // `...`,
      new CssMinimizerPlugin(),
    ],
  },
  plugins: [new MiniCssExtractPlugin()],
};

[!NOTE]

This enables CSS optimization only in production mode by default.

To enable it in development mode as well, set the optimization.minimize option to true:

webpack.config.js

// [...]
module.exports = {
  optimization: {
    // [...]
    minimize: true,
  },
};

Finally, run Webpack using your preferred method.

Note about source maps

This plugin works only with source-map, inline-source-map, hidden-source-map and nosources-source-map values for the devtool option.

Why? Because CSS support only these source map types.

The plugin respects the devtool setting and uses the SourceMapDevToolPlugin internally.

Using a supported devtool value enables source map generation.

Enabling the columns option in SourceMapDevToolPlugin also allows source map generation.

Use source maps to map error message locations to their original modules (note that this may slow down compilation).

If you use your own minify function please refer to the minify section for correct handling of source maps.

Options

NameTypeDefaultDescription
testString|RegExp|Array<String|RegExp>/\.css(\?.*)?$/iTest to match files against.
includeString|RegExp|Array<String|RegExp>undefinedFiles to include.
excludeString|RegExp|Array<String|RegExp>undefinedFiles to exclude.
parallelBoolean|NumbertrueEnable or disable multi-process parallel running.
minifyFunction|Array<Function>CssMinimizerPlugin.cssnanoMinifyAllows to override default minify function.
minimizerOptionsObject|Array<Object>{ preset: 'default' }Cssnano optimisations options.
warningsFilterFunction<(warning, file, source) -> Boolean>() => trueAllows filtering of css-minimizer warnings.
test
  • Type: String|RegExp|Array<String|RegExp>
  • Default: /\.css(\?.*)?$/i

Test to match files against.

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new CssMinimizerPlugin({
        test: /\.foo\.css$/i,
      }),
    ],
  },
};
include
  • Type: String|RegExp|Array<String|RegExp>
  • Default: undefined

Files to include.

webpack.config.js

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new CssMinimizerPlugin({
        include: /\/includes/,
      }),
    ],
  },
};
exclude
  • Type: String|RegExp|Array<String|RegExp>
  • Default: undefined

Files to exclude.

webpack.config.js

module.exports = {
  optimization: {
    minimize: true,
    minimizer: [
      new CssMinimizerPlugin({
        exclude: /\/excludes/,
      }),
    ],
  },
};
parallel
  • Type: Boolean|Number
  • Default: true

Use multi-process parallel running to improve the build speed.…

Description from the npm listing.

  • cssnano
  • css
  • csso
  • clean-css
  • swc
  • esbuild
  • webpack
  • webpack-plugin
  • minimize
  • minimizer
  • minify
  • minifier
  • 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

css-minimizer-webpack-plugin weekly downloads on npm, last 90 days: 10,696,467 weekly downloads as of Dec 5, 2026, +37.9% over 90 days.css-minimizer-webpack-pluginWeekly downloads on npm · Last 90 days10,696,467downloads / week+37.9% over 90 days02M4M6M8M10M12MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
css-minimizer-webpack-plugin weekly downloads on npm, last 90 days: 10,696,467 weekly downloads as of Dec 5, 2026, +37.9% over 90 days.

7/30/90-day growth

css-minimizer-webpack-plugin weekly downloads growth on npm: +11.6% over 7 days, +3.5% over 30 days, +37.9% over 90 days.css-minimizer-webpack-pluginWeekly downloads growth on npm10,696,467downloads / week now7-day growth+1,115,418 weekly downlo…+11.6%30-day growth+357,310 weekly downloads+3.5%90-day growth+2,940,068 weekly downlo…+37.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
css-minimizer-webpack-plugin weekly downloads growth on npm: +11.6% over 7 days, +3.5% over 30 days, +37.9% over 90 days.

Ranking history

css-minimizer-webpack-plugin npm ranking history: currently #139 (by weekly downloads).css-minimizer-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#139current rank#130#132#134#136#138#140#142Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
css-minimizer-webpack-plugin npm ranking history: currently #139 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 7, #19 (overall #139)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 1, #4 (overall #4)
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 (170)
Recent weekly downloads observations for css-minimizer-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
10,696,467+74.9K
10,621,581+387.8K
10,233,802+362.5K
9,871,324+162.7K
9,708,621+126.7K
9,581,895+21.1K
9,560,774-20.3K
9,581,049-55K
9,636,008-333.2K
9,969,226-375.6K
10,344,843-163.4K
10,508,200+17.6K
10,490,613+8.4K
10,482,224—

Similar npm Webpack plugins plugins

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