1.0.0 • Published 2 years ago

webpack-clean-plugin-wxy v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Clean Plugin

A webpack plugin to clean output.path folder for webpack project.

Installation

npm install --save-dev webpack-clean-plugin-wxy

Usage

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' })
    ]
 
    ...
}