purgecss-webpack-plugin weekly downloads statistics
By FullHuman · npm · Webpack plugins
PurgeCSS plugin for webpack - Remove unused css
purgecss-webpack-plugin has 20,134 recorded weekly downloads on npm, a decrease of 56.6% over the past 30 days.
It ranks #751 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -60.8%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About purgecss-webpack-plugin
purgecss-webpack-plugin
Webpack plugin to remove unused css.
Install
Usage
With mini-css-extract-plugin
Multiple paths
If you need multiple paths use the npm package glob-all instead of glob, then you can use this syntax:
to filter out directories see the glob-all documentation here.
Options
The options available in purgecss Configuration are also available in the webpack plugin with the exception of css and content.
• #### paths
With the webpack plugin, you can specify the content that should be analyzed by purgecss with an array of filename. It can be html, pug, blade, ... files. You can use a module like glob or glob-all to easily get a list of files.
If you want to regenerate the paths list on every compilation (e.g. with --watch), then you can also pass a function:
• #### only
You can specify entrypoints to the purgecss-webpack-plugin with the option only:
• #### safelist
Similar as for the paths option, you also can define a function for this option:
• #### rejected
If true all removed selectors are added to the Stats Data as purged.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning.
License
This project is licensed under the MIT License - see the LICENSE file for details
Description from the npm listing.
- webpack-plugin
- optimize
- optimization
- remove
- unused
- css
- html
- rules
- purge
- uncss
- purify
Where purgecss-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/purgecss-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.