webpack-clean-plugin
A Webpack plugin for removing files and folders.
Installation
npm install webpack-clean-plugin --save-dev
Example Webpack Config
var WebpackCleanPlugin = ;moduleexports =plugins:on: "emit"path: './static' './build'
on
One of Webpack build steps. Such as emit
compilce
and so on.
emit
path
The Array of file and dictory or just a string.
'./static' './build' or './build'