del-webpack-plugin weekly downloads statistics
By jackypan1989 · npm · Webpack plugins
file clean plugin for webpack v4 up
del-webpack-plugin has 197 recorded weekly downloads on npm, a decrease of 34.8% over the past 30 days, ranking #2499 of 3,247 tracked listings.
About del-webpack-plugin
Del-webpack-plugin
v2 was released, support webpack v5 !
A clean webpack plugin which can remove old files after bundling just as the well-known plugin clean-webpack-plugin, and more than it.
changelog
2021-04-01 (2.1.0): bump version, only use esbuild
2020-10-20 (2.0.0): rewrite to ts, rollup, and support webpack v5
2018-04-25 (1.0.5): upgrade to webpack v4
2018-05-28 (1.0.6): fix and update lib
2018-08-30 (1.1.0): add keepGeneratedAssets option
2018-10-18 (1.2.0): add allowExternal option
feature
- webpack v5
- typed source code
- only delete after webpack compile
- skip plugin if compile error
- multiple entry / path support
- include / exclude files support
- verbose / mute info support
- colorful log with chalk
- example with webpack
- support cross platform

install
# use yarn
yarn add -D del-webpack-plugin
# use npm
npm i -D del-webpack-plugin
usage (in your webpack config)
const DelWebpackPlugin = require('del-webpack-plugin')
{
plugins: [
new DelWebpackPlugin({
include: ['**'],
exclude: ['test.js'],
info: true,
keepGeneratedAssets: true,
allowExternal: false
})
]
}
options
| field | desc | type | default |
|---|---|---|---|
| info | console.log added files and deleted files | boolean | true |
| keepGeneratedAssets | keep webpack generated files | boolean | true |
| allowExternal | allows del-webpack-plugin to delete files outside of webpack root folder | boolean | false |
| include | a file list you wanna delete it will delete all files and folders by default, example: ['trash.js', 'trash/*.js'] | string[] | ['**'] |
| exclude | a file list you dont wanna delete, example: ['test.js', 'test/*.js'] | string[] | [] |
Welcome any issues and PRs submit :D
Description from the npm listing.
- webpack
- webpack-plugin
- remove
- del
- clean
- file
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 del-webpack-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/del-webpack-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.