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

webpack-cli@4 doesn't have flag --info-verbosity? #16

Open
datho7561 opened this issue Sep 2, 2022 · 1 comment
Open

webpack-cli@4 doesn't have flag --info-verbosity? #16

datho7561 opened this issue Sep 2, 2022 · 1 comment

Comments

@datho7561
Copy link

It says in the README:

Using Webpack v5 or later: In order for the watch matchers to work properly in Webpack v4, you must add --info-verbosity verbose to your webpack watch command e.g. webpack --watch --info-verbosity verbose as this instructs webpack to output lifecycle event messages for each re-compile.

However, when I add this flag, I get an error saying it doesn't exist:

❯ npx webpack --watch --info-verbosity verbose
[webpack-cli] Error: Unknown option '--info-verbosity'
[webpack-cli] Run 'webpack --help' to see available commands and options

I have:

❯ npx webpack --version
webpack 5.34.0
webpack-cli 4.6.0

Are any options needed to get the problem matcher to work with the new webpack-cli?

@datho7561
Copy link
Author

datho7561 commented Sep 2, 2022

From some investigation I've done, it seems like you just have to add the following to your webpack config:

//...
infrastructureLogging: {
  level: 'log',
},
//...

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

1 participant