Skip to content

Commit 9802941

Browse files
authored
fix: webpack noise printed only if error or warning (#12245)
1 parent 2eef1d0 commit 9802941

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
@@ -198,6 +198,8 @@ module.exports = function (webpackEnv) {
198198

199199
return {
200200
target: ['browserslist'],
201+
// Webpack noise constrained to errors and warnings
202+
stats: 'errors-warnings',
201203
mode: isEnvProduction ? 'production' : isEnvDevelopment && 'development',
202204
// Stop compilation early in production
203205
bail: isEnvProduction,

0 commit comments

Comments
 (0)