Skip to content

Commit ecb9170

Browse files
apburniearuniverse
authored andcommitted
fix: webpack noise printed only if error or warning (facebook#12245)
1 parent d46f798 commit ecb9170

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-scripts/config/webpack.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ module.exports = function (webpackEnv) {
305305

306306
const rawConfig = {
307307
target: ['browserslist'],
308+
// Webpack noise constrained to errors and warnings
309+
stats: 'errors-warnings',
308310
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
309311
// Stop compilation early in production
310312
bail: isEnvProduction,

0 commit comments

Comments
 (0)