How to silence build output
JonahMoses opened this issue · 2 comments
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?
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!
@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!