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

File tree

‎lib/after-watch.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = function($logger) {
33
const webpackProcess = compiler.getWebpackProcess();
44
if (webpackProcess) {
55
$logger.info("Stopping webpack watch");
6-
webpack.kill("SIGINT");
6+
webpackProcess.kill("SIGINT");
77
}
88
}

‎package.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
"script": "lib/before-watch.js",
2626
"inject": true
2727
},
28+
{
29+
"type": "after-watch",
30+
"script": "lib/after-watch.js",
31+
"inject": true
32+
},
2833
{
2934
"type": "before-watchPatterns",
3035
"script": "lib/before-watchPatterns.js",

0 commit comments

Comments
 (0)