Skip to content
PluginStats

uncss-webpack-plugin weekly downloads statistics

By vseventer · npm · Webpack plugins

Remove unused CSS using uncss in Webpack.

View on npm Outdated · Nov 10, 2026

uncss-webpack-plugin has 24 recorded weekly downloads on npm, an increase of 50.0% over the past 30 days, ranking #2955 of 3,247 tracked listings.

Weekly downloads
24
Official API · Dec 5, 2026
7-day growth
-22.6%
-7 weekly downloads
30-day growth
+50.0%
+8 weekly downloads
90-day growth
+71.4%
+10 weekly downloads
Rank
#2955
▼ 250 in 7 days

About uncss-webpack-plugin

uncss-webpack-plugin

Remove unused CSS using uncss in Webpack.

This plugin is an alternative to using UnCSS with postcss-loader. Running UnCSS as a loader has a few drawbacks:

  • There is no way to obtain the HTML files in the pipeline, hence you can only run UnCSS against HTML files on disk.
  • Any references to JavaScript files in the pipeline causes errors, for the same reason as above.

By running UnCSS as plugin, after all assets are loaded, we can overcome the two drawbacks outlined above. However, because Webpack holds its assets in memory until the very last stage, this plugin uses some ugly patching of jsdom, the underlying mechanism used by UnCSS. The benefit, however, is that UnCSS supports any selectors dynamically added by JavaScript, and the final output will be correct.

NOTE: Your HTML and CSS files must be extracted from the bundle, otherwise this plugin will not work. For HTML, you can use [ 'file-loader', 'extract-loader', 'html-loader' ], while for CSS [ 'file-loader', 'extract-loader', 'css-loader' ] will do the trick.

Install

npm install uncss-webpack-plugin

Usage

This plugin is designed for Webpack 2. Load the plugin, and simply add it to the plugin entry in your webpack.config.js.

// Package modules.
const UnCSSPlugin = require('uncss-webpack-plugin');

// Exports.
module.exports = {
  ...
  plugins: [
    new UnCSSPlugin({ /* options */ })
  ]
}
Options

For more detailed information, please refer to the UnCSS Usage section. Because Webpack controls the CSS, the following options are ignored: csspath, ignoreSheets, media, raw, report, and stylesheets.

  • enable (boolean, default true) - enable the plugin.
  • html (array, default to Webpack HTML assets) - list of HTML files to check.
  • htmlroot (string) - where the project root is.
  • timeout (number) - specify how long to wait for the JS to be loaded.
  • uncssrc (string) - load all options from a JSON file.

Changelog

See the CHANGELOG for a list of changes.

License

The MIT License (MIT)

Copyright (c) 2017 Mark van Seventer

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description from the npm listing.

  • css
  • tree-shaking
  • uncss
  • webpack
  • webpack-plugin

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

uncss-webpack-plugin weekly downloads on npm, last 90 days: 24 weekly downloads as of Dec 5, 2026, +71.4% over 90 days.uncss-webpack-pluginWeekly downloads on npm · Last 90 days24downloads / week+71.4% over 90 days010203040Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
uncss-webpack-plugin weekly downloads on npm, last 90 days: 24 weekly downloads as of Dec 5, 2026, +71.4% over 90 days.

7/30/90-day growth

uncss-webpack-plugin weekly downloads growth on npm: -22.6% over 7 days, +50.0% over 30 days, +71.4% over 90 days.uncss-webpack-pluginWeekly downloads growth on npm24downloads / week now7-day growth-7 weekly downloads-22.6%30-day growth+8 weekly downloads+50.0%90-day growth+10 weekly downloads+71.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
uncss-webpack-plugin weekly downloads growth on npm: -22.6% over 7 days, +50.0% over 30 days, +71.4% over 90 days.

Ranking history

uncss-webpack-plugin npm ranking history: currently #2955 (by weekly downloads).uncss-webpack-pluginnpm ranking · by weekly downloads · Last 90 days#2955current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 30 observations · Updated Dec 5, 2026pluginstats.com
uncss-webpack-plugin npm ranking history: currently #2955 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 148, #17 (overall #2,957)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 15, #12 (overall #292)
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 (592)
Recent weekly downloads observations for uncss-webpack-plugin
Date (UTC)Weekly downloadsChange vs. previous
240
24+2
22-7
29-2
31+2
29+2
27-4
310
31-2
33+3
300
30+2
28-1
29—

Similar npm Webpack plugins plugins

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