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

Commit f4b40bf

Browse files
Fatmesis0k0
Fatme
authored andcommitted
fix: attach to process's exit event on correct place (#671)
1 parent e05ff9c commit f4b40bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: lib/before-watch.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ module.exports = function ($logger, $liveSyncService, $devicesService, hookArgs)
1212
stopWebpackCompiler(platform);
1313
}
1414
});
15+
});
1516

16-
process.on("exit", () => {
17-
stopWebpackCompiler();
18-
});
17+
process.on("exit", () => {
18+
stopWebpackCompiler();
1919
});
2020

2121
const platforms = hookArgs.config.platforms;

0 commit comments

Comments
 (0)