friendly-errors-webpack-plugin icon indicating copy to clipboard operation
friendly-errors-webpack-plugin copied to clipboard

[Docs] Update logging section

Open lonix1 opened this issue 3 years ago • 0 comments

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:

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.

lonix1 avatar May 17 '22 04:05 lonix1