Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: stop webpack compiler when ctrl+c is pressed while executing `…
…tns preview --bundle` command
  • Loading branch information
Fatme committed Sep 17, 2018
commit f2cc7cfee7a1f164065c03390722699f8df4a686
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