You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add possibility to hide even startup information when quiet === true #2525
With devServer.quiet enabled, nothing except the initial startup information will be written to the console.
However I want to hide also the startup information.
This happened since #2235, is there a plan to support hiding that information as well again?
Expected Behavior
Nothing should be outputted to the console
Actual Behavior
For Features; What is the motivation and/or use-case for the feature?
I am using webpack-dev-server in a custom webapp builder, where I have my custom logs. Something like create-react-app. I want to decide what is output to the console and what not.
@jquense yep, for v4 we migrate on built-in webpack logger (problems doesn't exist), so you can easy disable all logs, for v3 you should use noInfo: true (we can't change it because it is a breaking change)
@alexander-akait
even with stats: "errors-warnings", (or even with "none") in webpack.config
I see:
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:8080/
<i> [webpack-dev-server] On Your Network (IPv4): http://192.168.91.128:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/home/al/Projects/designer/public' directory
<i> [webpack-dev-server] 404s will fallback to '/index.html'
webpack compiled successfully
No issues found.
webpack compiled successfully
No issues found.
I would like to get rid of all the "<i>" lines
(and to someday figure out why it compiles twice on startup)
I have the following package versions:
webpack: 5.51.0
webpack-cli: 4.8.0
webpack-dev-server: 4.0.0
Impossible, because it means info, you can disable colors or your terminal can't support colors, so we use <i> to indicate it is info message
It’s the first time I see this “output design” choice, so it bugged me too. I understand the intent, but the message is pretty clear by itself. Not sure it needs an additional flag to indicate it’s informative.
Activity
neberej commentedon Apr 24, 2020
There is
noInfo: truefor this scenario.I use the following settings and see no console output.
marcofugaro commentedon Apr 24, 2020
@neberej I've tried your configuration, it still shows the initial information.
I've made a repro if you want to check it out.
jquense commentedon Apr 30, 2020
This is confusing behavior. WDS is explicitly bypassing the configured logger when
quietis true.quietshould mean what is says, no logsalexander-akait commentedon May 25, 2020
@jquense yep, for v4 we migrate on built-in webpack logger (problems doesn't exist), so you can easy disable all logs, for v3 you should use
noInfo: true(we can't change it because it is a breaking change)thealjey commentedon Aug 19, 2021
@alexander-akait
even with
stats: "errors-warnings",(or even with"none") in webpack.configI see:
I would like to get rid of all the "<i>" lines
(and to someday figure out why it compiles twice on startup)
I have the following package versions:
webpack: 5.51.0
webpack-cli: 4.8.0
webpack-dev-server: 4.0.0
alexander-akait commentedon Aug 19, 2021
For logger please use https://webpack.js.org/configuration/other-options/#level
alexander-akait commentedon Aug 19, 2021
If you want to hide unnecessary things, please use
level: "warn"alexander-akait commentedon Aug 19, 2021
Impossible, because it means
info, you can disable colors or your terminal can't support colors, so we use<i>to indicate it isinfomessagethealjey commentedon Aug 19, 2021
@alexander-akait
wow, thank you so much!
this was bugging me for months :)
meduzen commentedon Aug 19, 2021
It’s the first time I see this “output design” choice, so it bugged me too. I understand the intent, but the message is pretty clear by itself. Not sure it needs an additional flag to indicate it’s informative.