0.1.0 • Published 7 years ago

simple-webpack-clean-plugin v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

simple-webpack-clean-plugin

Cleans files from directory on each files change

Options:

Required src - path to directory that needs to be cleaned cleanAll - indicates if all files should be removed from directory

Optional cleanCondition - function define condition on files removal

Examples

See examples directory

Installation

Install in your webpack config file

plugins: [
  new WebpackCleanPlugin({
    src: path.resolve(__dirname, 'build'),
    clearAll: true,
  }),
...
]