Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore does not do anything #28

Open
dancrumb opened this issue Aug 23, 2018 · 4 comments
Open

ignore does not do anything #28

dancrumb opened this issue Aug 23, 2018 · 4 comments

Comments

@dancrumb
Copy link

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 added a commit to dancrumb/unused-files-webpack-plugin that referenced this issue Aug 23, 2018
@mpaulucci
Copy link

@dancrumb You should specify globOptions.ignore.

@naganowl
Copy link

An alternative I've used is to pass in patterns prepended with ! which will be ignored.

@abharvey
Copy link

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/**/*"]
            }
        })

@cristovao-trevisan
Copy link

@abharvey answer should be in docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants