Skip to content

Replacements for clean-webpack-plugin ​

output.clean (built-in, since webpack 5) ​

Example:

js
const { CleanWebpackPlugin } = require('clean-webpack-plugin') 

module.exports = {
  plugins: [new CleanWebpackPlugin()], 
  output: { clean: true } 
}

Released under the MIT License. (cb509db0)