webpack-clean-plugin-wxy
v1.0.0
Published
A webpack plugin to clean output.path folder for webpack project.
Readme
Clean Plugin
A webpack plugin to clean output.path folder for webpack project.
Installation
npm install --save-dev webpack-clean-plugin-wxyUsage
const CleanWebpackPlugin = require('webpack-clean-plugin-wxy');
module.exports = {
...
plugins: [
// clean out.path folder
new CleanWebpackPlugin()
]
...
}
// 保留指定文件
module.exports = {
...
plugins: [
// exclude .git folder
new EmptyWebpackPlugin({ exclude: '.git' })
]
...
}