0.1.0 • Published 8 years ago
simple-webpack-clean-plugin v0.1.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 directoryInstallation
Install in your webpack config file
plugins: [
new WebpackCleanPlugin({
src: path.resolve(__dirname, 'build'),
clearAll: true,
}),
...
]