https://github.com/sunft1996/remove-file-webpack-plugin
:gem: webpack插件,用于删除项目下指定的文件和目录
https://github.com/sunft1996/remove-file-webpack-plugin
file plugin remove webpack
Last synced: 4 months ago
JSON representation
:gem: webpack插件,用于删除项目下指定的文件和目录
- Host: GitHub
- URL: https://github.com/sunft1996/remove-file-webpack-plugin
- Owner: sunft1996
- License: mit
- Created: 2020-05-26T09:04:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T18:33:30.000Z (over 2 years ago)
- Last Synced: 2025-01-27T14:47:24.225Z (4 months ago)
- Topics: file, plugin, remove, webpack
- Language: JavaScript
- Homepage:
- Size: 666 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.CN.md
- License: LICENSE
Awesome Lists containing this project
README
remove-file-webpack-plugin


## 介绍
webpack插件,用于删除项目下指定的文件和目录。## 安装
下载remove-file-webpack-plugin```
npm install --save-dev remove-file-webpack-plugin
```
## 配置**webpack.config.js**
```
const RemoveFileWebpackPlugin = require('remove-file-webpack-plugin');
module.exports = {
plugins: [
new RemoveFileWebpackPlugin({
dirNames:['dir_1'],
fileNames:['file_1.js'],
})
],
};
```**Options**
属性名 | 类型 | 默认值 | 说明
---|---|---|---
dirNames | Array | [ ] | 删除的目录名
fileNames | Array | [ ] | 删除的文件名
ignore | Array | [ ] | 忽略目录的绝对路径注:**node_modules** 默认会被忽略,不需添加到 **ignore**
## Other
如果你有任何疑问,欢迎提交issue到 [GitHub](https://github.com/sunft1996/remove-file-webpack-plugin/).## License
[MIT](https://github.com/sunft1996/remove-file-webpack-plugin/blob/master/LICENSE)