We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8378740 commit af33801Copy full SHA for af33801
packages/webpack-cli/lib/webpack-cli.js
@@ -2125,13 +2125,18 @@ class WebpackCLI {
2125
return;
2126
}
2127
2128
+ process.on("SIGINT", () => {
2129
+ compiler.close();
2130
+ });
2131
+
2132
const isWatch = (compiler) =>
2133
compiler.compilers
2134
? compiler.compilers.some((compiler) => compiler.options.watch)
2135
: compiler.options.watch;
2136
2137
if (isWatch(compiler) && this.needWatchStdin(compiler)) {
2138
process.stdin.on("end", () => {
2139
2140
process.exit(0);
2141
});
2142
process.stdin.resume();
0 commit comments