首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用grunt-shell时,ctrl-c [SIGINT]不能使用Grunt

使用grunt-shell时,ctrl-c [SIGINT]不能使用Grunt
EN

Stack Overflow用户
提问于 2014-10-08 04:36:05
回答 1查看 429关注 0票数 7

如果我在grunt-shell中使用Grunt Task Runner,我无法使用ctrl-c SIGINT退出grunt。

代码语言:javascript
复制
grunt.registerTask('serve', [
  'less',
  'autoprefixer',
  'shell:hologram', // grunt-shell task
  'connect:livereload',
  'watch'
]);

下面是shell的配置方式:

代码语言:javascript
复制
grunt.initConfig({

...

  shell: {
    options: {
      failOnError: false
    },
    hologram: {
      command: 'bundle exec hologram'
    },
  },

...

}
EN

回答 1

Stack Overflow用户

发布于 2018-12-29 09:00:45

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26244827

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档