eamodio / vscode-tsl-problem-matcher

TypeScript + Webpack Problem Matchers for VS Code
MIT License
44 stars 9 forks source link

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

Open datho7561 opened 2 years ago

datho7561 commented 2 years ago

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 commented 2 years ago

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

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