Skip to content

Commit

Permalink
fix: webpack noise printed only if error or warning (#12245)
Browse files Browse the repository at this point in the history
  • Loading branch information
apburnie authored Apr 11, 2022
1 parent 2eef1d0 commit 9802941
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9802941

Please # to comment.