diff --git a/packages/react-scripts/scripts/start.js b/packages/react-scripts/scripts/start.js index 8df052d3bbb..c115adcb4eb 100644 --- a/packages/react-scripts/scripts/start.js +++ b/packages/react-scripts/scripts/start.js @@ -91,6 +91,12 @@ choosePort(HOST, DEFAULT_PORT) process.exit(); }); }); + + process.stdin.on('end', function() { + devServer.close(); + process.exit(); + }); + process.stdin.resume(); }) .catch(err => { if (err && err.message) {