Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 380 Bytes

File metadata and controls

18 lines (13 loc) · 380 Bytes
description Modern alternatives to the clean-webpack-plugin package

Replacements for clean-webpack-plugin

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

Example:

const { CleanWebpackPlugin } = require('clean-webpack-plugin') // [!code --]

module.exports = {
  plugins: [new CleanWebpackPlugin()], // [!code --]
  output: { clean: true } // [!code ++]
}