question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: silence output using config

See original GitHub issue

I 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:

output of terminal with webpack

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, and karma-webpack.

Note: I tried noInfo: true and quiet: 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:closed
  • Created 8 years ago
  • Reactions:69
  • Comments:44 (12 by maintainers)

github_iconTop GitHub Comments

117reactions
kentcdoddscommented, Feb 7, 2016

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:

{
    hash: false,
    version: false,
    timings: false,
    assets: false,
    chunks: false,
    modules: false,
    reasons: false,
    children: false,
    source: false,
    errors: false,
    errorDetails: false,
    warnings: false,
    publicPath: false
}
80reactions
kentcdoddscommented, Nov 16, 2015

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:

{
  devServer: {
    stats: 'errors-only',
  },
}

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip documentation v22.3.1
If you want to suppress the colored output use --no-color. File logging#. pip offers the --log option for specifying a file where a...
Read more >
Jobs - GitLab Docs
Hide jobs. To temporarily disable a job without deleting it from the configuration file: Comment out the job's configuration:.
Read more >
Product feedback - Configuration Manager | Microsoft Learn
Share feedback with the Configuration Manager product team. ... Send a suggestion (ALT + SHIFT + 9): Open the Configuration Manager product ...
Read more >
git-config Documentation - Git
This option requests that git config not canonicalize the retrieved variable. ... Augment the output of all queried config options with the origin...
Read more >
Use Control Center on Apple Watch
Check your battery, silence your watch, choose a Focus, turn your Apple Watch into ... Change which settings are turned on or off...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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