unused-files-webpack-plugin
unused-files-webpack-plugin copied to clipboard
`ignore` does not do anything
The documentation includes an ignore
option, but it doesn't do anything and the source code doesn't appear to reference it at all.
@dancrumb You should specify globOptions.ignore
.
An alternative I've used is to pass in patterns prepended with !
which will be ignored.
I ran into this problem today as well. Docs are certainly misleading: This works though as @mpaulucci has mentioned:
new UnusedFilesWebpackPlugin({
globOptions: {
ignore: ["node_modules/**/*", "**/*.test.*", "**/*.config.*", "**/__mocks/**/*"]
}
})
@abharvey answer should be in docs