webpack-cleanup-plugin weekly downloads statistics
By gpbl · npm · Webpack plugins
Plugin for webpack to cleanup extraneous files from the output path directory
webpack-cleanup-plugin has 7,039 recorded weekly downloads on npm, a decrease of 9.9% over the past 30 days, ranking #1403 of 3,247 tracked listings.
About webpack-cleanup-plugin
webpack-cleanup-plugin
This webpack plugin cleans up the extraneous files from the webpack's output path.
Since it runs when the compile process is finished, it is useful when building on production to remove the assets created by previous builds.
npm install webpack-cleanup-plugin --save-dev
⚠️ Beware! This plugins actually delete files. Make sure it's safe for your app
to delete files not generated by webpack. Use the exclude option if you want to
keep files that are not webpack assets.
Usage
Install via npm:
npm install webpack-cleanup-plugin --save-dev
Then add the plugin to the plugins array in your webpack's config, e.g.:
// webpack.config.js
import WebpackCleanupPlugin from 'webpack-cleanup-plugin';
const config = {
output: {
path: "/my/output/path"
},
// ...
plugins: [
new WebpackCleanupPlugin()
]
}
export default config;
Options
- If you want to keep some files in the output path, e.g. a
stats.jsonfile generated from some other plugins, use theexcludeArray option. It accepts globbing as in minimatch.
// Do not delete `stats.json`, `important.json`, and everything in `folder`
new WebpackCleanupPlugin({
exclude: ["stats.json", "important.js", "folder/**/*"],
})
- To mute the console output, use the
quietoption:
new WebpackCleanupPlugin({
quiet: true,
})
- To print the list of the files that will be deleted without actually deleting them, use the
previewoption:
new WebpackCleanupPlugin({
preview: true,
})
Description from the npm listing.
- 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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm Webpack plugins plugins
All 20 webpack-cleanup-plugin alternativesData 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/webpack-cleanup-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.