San*_*eef 7 gruntjs grunt-contrib-watch grunt-shell
如果我使用Grunt Task Runner和grunt-shell,我无法使用ctrl-c [SIGINT]退出grunt.
grunt.registerTask('serve', [
'less',
'autoprefixer',
'shell:hologram', // grunt-shell task
'connect:livereload',
'watch'
]);
Run Code Online (Sandbox Code Playgroud)
以下是shell的配置方式:
grunt.initConfig({
...
shell: {
options: {
failOnError: false
},
hologram: {
command: 'bundle exec hologram'
},
},
...
}
Run Code Online (Sandbox Code Playgroud)
当我从 Git Bash 运行 Grunt 时,我遇到了同样的问题。我的解决方案是更新到最新版本的 git bash 并使用CTRL+SHIFT+C退出。很可能CTRL+SHIFT+C就足够了(即使是旧版本)。
| 归档时间: |
|
| 查看次数: |
393 次 |
| 最近记录: |