UnusedFilesPlugin
Show or remove all files that are not compiled by webpack under webpack's context.
Options
plugins: ... remove: false folders: path path ignore: /node_modules/ /\.DS_Store/ /__mocks__/ /__tests?__/
remove
: Remove or not unused files. The default value isfalse
ignore
: Array of regexp for ignore paths. The default value is[/node_modules/, /\.DS_Store/, /__tests?__/]
folders
: Array of paths with source code.