Add SIGINT to devServer threads on exit

This commit is contained in:
Shawn 2019-03-15 22:55:01 -05:00
parent de51d8fc19
commit 0f2ffa696d

View file

@ -70,4 +70,11 @@ mainInstance.waitUntilValid(() => {
child.stdout.on('data', (data) => {
console.log(data.toString());
});
process.on('SIGINT', function() {
console.log('Killing threads...');
child.kill('SIGINT');
process.exit();
});
});