From d05f73c43e51c4db1b1ec5b5a49c75aa3280fa40 Mon Sep 17 00:00:00 2001 From: Andrew Burnie Date: Mon, 4 Apr 2022 19:45:33 +0100 Subject: [PATCH] webpack noise printed only if error or warning --- packages/react-scripts/config/webpack.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 2b1b3bbd47d..e465d8e7a00 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -198,6 +198,8 @@ module.exports = function (webpackEnv) { return { target: ['browserslist'], + // Webpack noise constrained to errors and warnings + stats: 'errors-warnings', mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development', // Stop compilation early in production bail: isEnvProduction,