unused-files-plugin
v1.0.2
Published
Show or remove all files that are not compiled by webpack under webpack's context.
Downloads
18
Maintainers
Readme
UnusedFilesPlugin
Show or remove all files that are not compiled by webpack under webpack's context.
Options
plugins: [
...
new UnusedFilesPlugin({
remove: false,
folders: [
path.resolve(__dirname, '../../client'),
path.resolve(__dirname, '../../server'),
],
ignore: [/node_modules/, /\.DS_Store/, /__mocks__/, /__tests?__/],
})
],remove: Remove or not unused files. The default value isfalseignore: Array of regexp for ignore paths. The default value is[/node_modules/, /\.DS_Store/, /__tests?__/]folders: Array of paths with source code.
