remove-files-webpack-plugin weekly downloads statistics
By Amaimersion · npm · Webpack plugins
A plugin for webpack that removes files and folders before and after compilation.
remove-files-webpack-plugin has 30,532 recorded weekly downloads on npm, a decrease of 6.7% over the past 30 days, ranking #684 of 2,322 tracked listings.
About remove-files-webpack-plugin
Content
- Content
- Installation
- Support
- Usage
- Notes
- Notes for Windows users
- Parameters
- Examples
- Version naming
- Contribution
- License
Installation
- With
npm:
npm install remove-files-webpack-plugin
- With
yarn:
yarn add remove-files-webpack-plugin
Support
The plugin works on any OS and webpack >= 2.2.0.
Usage
const RemovePlugin = require('remove-files-webpack-plugin');
module.exports = {
plugins: [
new RemovePlugin({
before: {
// parameters for "before normal compilation" stage.
},
watch: {
// parameters for "before watch compilation" stage.
},
after: {
// parameters for "after normal and watch compilation" stage.
}
})
]
};
Notes
Symbolic links
Symbolic links (soft links) will be treated as ordinary files.
Notes for Windows users
Single backward slash
JavaScript uses it for escaping. If you want to use backward slash, then use double backward slash. Example: C:\\Windows\\System32\\cmd.exe. By the way, single forward slashes are also supported.
Segment separator
All paths that you get or see from the plugin will contain platform-specific segment separator (i.e. slash): \\ on Windows and / on POSIX. So, for example, even if you passed folders or files with / as separator, TestObject.method will give you a path with \\ as segment separator.
Per-drive working directory
From Node.js documentation:
On Windows Node.js follows the concept of per-drive working directory. This behavior can be observed when using a drive path without a backslash. For example,
path.resolve('c:\\')can potentially return a different result thanpath.resolve('c:'). For more information, see this MSDN page.
Parameters
| Name | Type | Default | Namespace | Description |
|---|---|---|---|---|
| root | string | . | All | A root directory.<br>Not absolute paths will be appended to this.<br>Defaults to where package.json and node_modules are located. |
| include | string[] | [] | All | A folders or files for removing. |
| exclude | string[] | [] | All | A folders or files for excluding. |
| test | TestObject[] | [] | All | A folders for testing. |
| TestObject.folder | string | Required | All | A path to the folder (relative to root).… |
Description from the npm listing.
- webpack
- webpack-plugin
- webpack-compilation
- webpack-files
- compilation
- plugin
- files
- build-automation
- clean
- cleanup
- clean-plugin
- clean-webpack-plugin
- clean-files-plugin
- clean-files-webpack-plugin
- remove
- remove-plugin
- remove-webpack-plugin
- remove-files-plugin
- remove-files-webpack-plugin
- delete
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 (544)Similar npm Webpack plugins plugins
All 20 remove-files-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/remove-files-webpack-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.