A cleanup plugin for webpack
This module requires a minimum of Node v6.9.0 and Webpack 4.
To begin, you'll need to install beckans-webpack-cleanup-plugin
:
$ npm install beckans-webpack-cleanup-plugin --save-dev
Then add the plugin to your webpack
config. For example:
// webpack.config.js
const CleanupPlugin = require('webpack-cleanup-plugin');
module.exports = {
// ...
plugins: [
new CleanupPlugin(options),
],
// ...
}
And run webpack
via your preferred method.
Type: Array
Default: []
Type: Array
Default: null
Type: Integer
Default: 4700
Type: String
Default: ./