npm.io
0.1.0 • Published 8 years ago

simple-webpack-clean-plugin

Licence
MIT
Version
0.1.0
Deps
0
Vulns
0
Weekly
0

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,
  }),
...
]

Keywords