webpack-cleanup-plugin
webpack-cleanup-plugin copied to clipboard
Plugin for webpack to cleanup the output path
I don't have the time to follow or update this plugin. If someone wants to the ownership of the npm module please [email protected], thanks!
webpack-cleanup-plugin is causing a warning with Webpack 4. When I run` node --trace-deprecation ./node_modules/.bin/webpack` get this: ``` (node:50169) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead at WebpackCleanupPlugin.apply...
In my webpack file I have: ```javascript new WebpackCleanupPlugin({ exclude: [path.resolve(__dirname, 'dist/*.gitignore')] }) ``` I've also tried a few other variations of the single element in the exclude array: -...
Hi, I was using this plugin to keep things nice and clean in the dist folder, everything seemed to be working fine. Until at one point I refreshed the browser...
This an enhancement. It will be nice if this plugin also removes the empty folder from previous compilations.
It outputs a line at the start of the json with files deleted info. ``` WebpackCleanupPlugin: 0 file(s) deleted. { "errors": [], "warnings": [], "version": "2.5.1", ... ```
Fixes https://github.com/gpbl/webpack-cleanup-plugin/issues/32 For context: https://github.com/johnagan/clean-webpack-plugin/issues/11 https://github.com/webpack/webpack/issues/1904
This adds a ``selfOnly`` option that will only remove files that the current Webpack compilation has created. Can be used in combination or as an alternative to ``exclude``.
This PR implements the `keepReleases` options similarly to `keep_releases` in [capistrano](http://capifony.org/reference/capistrano.html) Please let me know if you think this should be merged and I'll add some documentation. Thanks!
Note: had to remove the `lib` from .gitignore to be able to use the fork as a dependency