Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

chore: stop webpack compiler when ctrl+c is pressed while executing tns preview --bundle command #661

Merged
merged 1 commit into from
Sep 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/before-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ module.exports = function ($logger, $liveSyncService, $options, $devicesService,
stopWebpackCompiler(platform);
}
});

process.on("exit", () => {
stopWebpackCompiler();
});
});

const platforms = hookArgs.config.platforms;
Expand Down