I found the "Turn off errors" config to be confusing. I'm not using express, so it doesn't apply in my case. Also I think it's for an older version of webpack.
With webpack 5, the old logging config is obsolete, we must use infrastructureLogging instead.
This works:
I'm using "error" rather than "none". But the output is the same in both cases anyway.
That docs section should be updated to show the config above, to avoid confusion. Thanks.
I found the "Turn off errors" config to be confusing. I'm not using express, so it doesn't apply in my case. Also I think it's for an older version of webpack.
With webpack 5, the old logging config is obsolete, we must use
infrastructureLogginginstead.This works:
module.exports = { //... infrastructureLogging: { level: 'error', }, };I'm using "error" rather than "none". But the output is the same in both cases anyway.
That docs section should be updated to show the config above, to avoid confusion. Thanks.