1.0.0 • Published 3 years ago

clean-webpack-output-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

clean-webpack-output-plugin

npm version npm downloads node engine

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']),
];

License

MIT LICENSE