Gruntjs ctrl-c[SIGINT]在使用Grunt shell时不使用Grunt

Gruntjs ctrl-c[SIGINT]在使用Grunt shell时不使用Grunt,gruntjs,grunt-contrib-watch,grunt-shell,Gruntjs,Grunt Contrib Watch,Grunt Shell,如果将Grunt任务运行器与一起使用,则无法使用ctrl-c[SIGINT]退出Grunt grunt.registerTask('serve'[ “更少”, “自动刷新器”, 'shell:全息图',//grunt shell任务 '连接:livereload', “注意” ]); 以下是shell的配置方式: grunt.initConfig({ ... 外壳:{ 选项:{ 失败者:错误 }, 全息图:{ 命令:“bundle exec全息图” }, }, ... } 从Git Bash运

如果将Grunt任务运行器与一起使用,则无法使用ctrl-c[SIGINT]退出Grunt

grunt.registerTask('serve'[
“更少”,
“自动刷新器”,
'shell:全息图',//grunt shell任务
'连接:livereload',
“注意”
]);
以下是shell的配置方式:

grunt.initConfig({
...
外壳:{
选项:{
失败者:错误
},
全息图:{
命令:“bundle exec全息图”
},
},
...
}

从Git Bash运行Grunt时,我遇到了同样的问题。我的解决方案是更新到Git Bash的最新版本,并使用CTRL+SHIFT+C退出。 很可能CTRL+SHIFT+C就足够了(即使是旧版本)