clean-webpack-output-plugin
v1.0.0
Published
A webpack plugin to remove your output files
Downloads
4
Readme
clean-webpack-output-plugin
A webpack plugin to remove your output files, is similar to clean-webpack-plugin.
Install
npm i clean-webpack-output-plugin --save-dev
Usage
const CleanWebpackOutputPlugin = require('clean-webpack-output-plugin');
// default remove outputPath, without params
plugins: [new CleanWebpackOutputPlugin()];
// remove dir
plugins: [new CleanWebpackOutputPlugin('/tmp/mydir')];
// remove file
plugins: [new CleanWebpackOutputPlugin('/tmp/myfile')];
// remove multiple
plugins: [
new CleanWebpackOutputPlugin(['/tmp/mydir', '/tmp/otherdir', '/tmp/myfile']),
];