Skip to content

Commit 5b2486d

Browse files
Closes webpack dev server and exits process on "end" stdin
1 parent 17c9ad2 commit 5b2486d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/react-scripts/scripts/start.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ checkBrowsers(paths.appPath, isInteractive)
152152
process.exit();
153153
});
154154
});
155+
156+
process.stdin.on('end', function() {
157+
devServer.close();
158+
process.exit();
159+
});
160+
process.stdin.resume();
155161
})
156162
.catch(err => {
157163
if (err && err.message) {

0 commit comments

Comments
 (0)