feature request: silence output using config
See original GitHub issueI originally asked this as a question on StackOverflow but the lack of response and some digging has lead me to believe that this is not possible. Here’s the original question (copy/paste):
I would like to know if there’s a configuration option to tell webpack to only log the “important information” to the terminal. Pretty much just errors and warnings, not all of this:
There’s just so much output! Would love to suppress the common stuff and only have webpack output the warnings/errors. Would like a solution for
webpack
,webpack-dev-server
, andkarma-webpack
.Note: I tried
noInfo: true
andquiet: true
but that didn’t seem to do the trick.
I’ve dug around the code a bit and I don’t think that there’s anything in webpack
or webpack-core
to silence the output based on the config I give it (though it looks like webpack-dev-server
does support this). I would really like to silence output for my tests so I can keep noise to a minimum.
Note: Keeping webpack: bundle is now VALID
or INVALID
I think would still be valuable. It’s just the info about everything that was built is noisy.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:69
- Comments:44 (12 by maintainers)
Here’s the relevent code. Looks like the acceptable preset values are:
none, errors-only, minimal, normal, verbose
and otherwise you can specify your own object:For others looking at this, I actually prefer configuring it in my webpack config and I also prefer the
'errors-only'
option. So my webpack config has this:Thanks!