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

failOnUnused not working properly #55

Open
caiquegiovannini opened this issue Jul 16, 2021 · 1 comment
Open

failOnUnused not working properly #55

caiquegiovannini opened this issue Jul 16, 2021 · 1 comment

Comments

@caiquegiovannini
Copy link

I set failOnUnused as true, when I have unused components in the code, I get the log that the compilation failed but my application is still working. So the compilation doesn't really fail or am I missing something?

@arturopie
Copy link

I ran into the same issue. Not sure if failOnUnused is just not working or I have a misconfiguration. Here is my configuration:

new UnusedWebpackPlugin({
      directories: [`${paths.root}/src`],
      failOnUnused: true,
      exclude: [
         ...
      ],
      root: paths.root,
    }),

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

2 participants