A webpack plugin that removes assets after build stage and before files are actually emitted
npm install --save-dev webpack-remove-assets
// webpack.config.js
var RemoveAssetsPlugin = require('webpack-remove-assets');
module.exports = {
// ... snip ...
plugins: [
new RemoveAssetsPlugin(['folder/','folder/file.js']);
],
// ... snip ...
}