File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ const useYarn = fs.existsSync(paths.yarnLockFile);
51
51
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024 ;
52
52
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024 ;
53
53
54
+ const isInteractive = process . stdout . isTTY ;
55
+
54
56
// Warn and crash if required files are missing
55
57
if ( ! checkRequiredFiles ( [ paths . appHtml , paths . appIndexJs ] ) ) {
56
58
process . exit ( 1 ) ;
@@ -63,7 +65,7 @@ const writeStatsJson = argv.indexOf('--stats') !== -1;
63
65
// We require that you explictly set browsers and do not fall back to
64
66
// browserslist defaults.
65
67
const { checkBrowsers } = require ( 'react-dev-utils/browsersHelper' ) ;
66
- checkBrowsers ( paths . appPath )
68
+ checkBrowsers ( paths . appPath , isInteractive )
67
69
. then ( ( ) => {
68
70
// First, read the current file sizes in build directory.
69
71
// This lets us display how much they changed later.
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ if (process.env.HOST) {
78
78
// We require that you explictly set browsers and do not fall back to
79
79
// browserslist defaults.
80
80
const { checkBrowsers } = require ( 'react-dev-utils/browsersHelper' ) ;
81
- checkBrowsers ( paths . appPath )
81
+ checkBrowsers ( paths . appPath , isInteractive )
82
82
. then ( ( ) => {
83
83
// We attempt to use the default port but if it is busy, we offer the user to
84
84
// run on a different port. `choosePort()` Promise resolves to the next free port.
You can’t perform that action at this time.
0 commit comments