Disable warnings in console?

See original GitHub issue

My bundle generates warnings that I’d like to hide / filter for the moment. I’ve set the webpackDevMiddleware’s stats’s warnings option to false, but the warnings are still shown in the browser console:

[HMR] bundle has 13 warnings
...

Do those stats settings influence what’s send to the HMR client? Shouldn’t they?

What’s the best way to hide these warnings but still get the other information. I prefer not using the noInfo since that might hide more information than just those warnings.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
okcokercommented, Dec 14, 2017

Actually you might want to try &quiet=true instead of &warn=false as seen here

0reactions
ebrahimiavalcommented, Jul 17, 2018

edit webpack like this

 ...
entry: ['webpack-hot-middleware/client.js?quiet=true'],
....
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide warning messages in console window - Stack Overflow
First off: you can hide all warnings and show only console.log output if you are using Microsoft ...
Read more >
Is there a way to suppress warnings in the console?
You can supress log messages by log level using the XK6_BROWSER_LOG environment variable. Its value can be any of (from more to less...
Read more >
How to remove the Warning message in Dev Console?
Just start trying Opera today all good, except can can I remove the Warning message in the dev console to gain some desktop...
Read more >
Disable showing warnings in the console #14313 - GitHub
There is currently no way to disable warnings (apparently). I'm going nuts, I have an application with thousands rows of code and Spyder ......
Read more >
Suppress Warnings - MATLAB & Simulink - MathWorks
Turn Warnings On and Off. After you obtain the identifier from the query state, use this information to disable or enable the warning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found