webpack-unused-plugin
v0.0.0
Published
A webpack plugin to remove all unused files
Downloads
2
Readme
Webpack Unused Plugin
Installation
npm install webpack-unused-plugin
Usage
import UnusedPlugin from 'webpack-unused-plugin';
// ...
plugins: [new UnusedPlugin({
filename: 'unused-files.json',
ignore: [/\/server\//. /\.spec\./, /\.test\./],
srcPath: './src/**/*.js'
})],
// ...