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 abhiisheek committed May 24, 2023
1 parent 68c5305 commit 398bc0f
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 @@ -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 398bc0f

Please sign in to comment.