Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to silence build output #87

Open
JonahMoses opened this issue Jul 16, 2019 · 2 comments
Open

How to silence build output #87

JonahMoses opened this issue Jul 16, 2019 · 2 comments

Comments

@JonahMoses
Copy link

JonahMoses commented Jul 16, 2019

I've tried a few variations of:

customizeWebpackConfig: (config) => {
    config.module.stats.push('errors-only');
    return config;
  },

https://webpack.js.org/configuration/stats/

and I'm still seeing the build output in CI. Is it possible to silence these to errors only?
image

@trotzig
Copy link
Contributor

trotzig commented Jul 16, 2019

It looks like the stats option has no effect when using directly in Node.js (which is what we do under the hood):

This option does not have any effect when using the Node.js API.

(from https://webpack.js.org/configuration/stats/)

Is that log from a successful build or a failed one? According to this issue, compilation using the Node.js API isn't logging anything by default, and the only place I can see us logging things is when there is an error.

Could it be that the log is coming from JSDOM during the rendering phase? In that case, you could try playing around with the jsdomOptions configuration option, passing in a different virtual console.

Let me know if that helps!

@JonahMoses
Copy link
Author

@trotzig Interesting, yeah I can see why this wouldn't work then. This was a successful build so I'm assuming this might be coming from the JSDOM... I'll explore that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants