Skip to content

Commit

Permalink
Closes webpack dev server and exits process on "end" stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyleftwich committed Jun 12, 2019
1 parent 56d1de2 commit 108bafe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-scripts/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ checkBrowsers(paths.appPath, isInteractive)
process.exit();
});
});

process.stdin.on('end', function() {
devServer.close();
process.exit();
});
process.stdin.resume();
})
.catch(err => {
if (err && err.message) {
Expand Down

0 comments on commit 108bafe

Please sign in to comment.