From 5d0a03fb6235f240dc49344b4e87122e35b9e6e5 Mon Sep 17 00:00:00 2001 From: screetBloom <15306225869@163.com> Date: Fri, 19 Aug 2022 10:19:35 +0800 Subject: [PATCH] fix(cli-service): webpack-dev-server doesn't exit on Ctrl+C --- packages/@vue/cli-service/lib/commands/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vue/cli-service/lib/commands/serve.js b/packages/@vue/cli-service/lib/commands/serve.js index 5bbedb350c..4c1cfcb0b8 100644 --- a/packages/@vue/cli-service/lib/commands/serve.js +++ b/packages/@vue/cli-service/lib/commands/serve.js @@ -261,7 +261,7 @@ module.exports = (api, options) => { // fix: webpack-dev-server doesn't exit on Ctrl+C ;['SIGINT', 'SIGTERM'].forEach(signal => { - process.on(signal, () => exitProcess) + process.on(signal, exitProcess) }) if (args.stdin) {