From 9802941ff049a28da2682801bc182a29761b71f4 Mon Sep 17 00:00:00 2001 From: Andrew Burnie Date: Mon, 11 Apr 2022 22:35:17 +0100 Subject: [PATCH] fix: webpack noise printed only if error or warning (#12245) --- 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,