cssnano-webpack-plugin weekly downloads statistics
By lneveu · npm · Webpack plugins
cssnano plugin for Webpack
cssnano-webpack-plugin has 191 recorded weekly downloads on npm, a decrease of 54.8% over the past 30 days.
It ranks #1598 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -44.0%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About cssnano-webpack-plugin
cssnano-webpack-plugin
This plugin uses cssnano to optimize and minify your CSS.
Fully integrated in Webpack ecosystem: based on compiler hooks, respecting default Webpack output sources and compatible with other plugins like *SourceMapDevToolPlugin* or *webpack-subresource-integrity*.
Just like optimize-css-assets-webpack-plugin but more accurate with source maps and assets using query string.
Works with Webpack 4+.
Getting Started
First, install cssnano-webpack-plugin:
Then add the plugin to your webpack configuration. For example:
webpack.config.js
This will enable CSS optimization only in production mode. If you want to run it also in development, put the plugin configuration in the plugins option array.
Options
test
Type: String|RegExp|Array - default: /\.css(\?.*)?$/i
Test to match files against.
include and exclude options are also supported (see module rules).
sourceMap
Type: Boolean|Object - default: false
Enable (and configure) source map support. Use PostCss SourceMap options. Default configuration when enabled: { inline: false }.
cssnanoOptions
Type: Object - default: { preset: 'default' }
Cssnano optimisations options.
Examples
Use sourcemaps
Don't forget to enable sourceMap options for all loaders.
Remove all comments
Remove all comments (including comments starting with /*!).
License
MIT
Description from the npm listing.
- cssnano
- css
- webpack
- webpack-plugin
- minimize
- minimizer
- minify
- minifier
- optimize
- optimizer
Where cssnano-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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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)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/cssnano-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.