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

Commit 54c39ad

Browse files
Fatmesis0k0
Fatme
authored andcommitted
chore: stop webpack compiler when ctrl+c is pressed while executing tns preview --bundle command (#661)
1 parent c16be7b commit 54c39ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/before-watch.js

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = function ($logger, $liveSyncService, $options, $devicesService,
1212
stopWebpackCompiler(platform);
1313
}
1414
});
15+
16+
process.on("exit", () => {
17+
stopWebpackCompiler();
18+
});
1519
});
1620

1721
const platforms = hookArgs.config.platforms;

0 commit comments

Comments
 (0)