Skip to content

Commit

Permalink
fix: webpack noise printed only if error or warning (facebook#12245)
Browse files Browse the repository at this point in the history
  • Loading branch information
apburnie authored and aruniverse committed Sep 6, 2022
1 parent d46f798 commit ecb9170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Expand Up @@ -305,6 +305,8 @@ module.exports = function (webpackEnv) {

const rawConfig = {
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 ecb9170

Please sign in to comment.