如果我将 Grunt Task Runner 与grunt-shell一起使用,我将无法使用 ctrl-c [SIGINT] 退出 grunt。
grunt.registerTask('serve', [
'less',
'autoprefixer',
'shell:hologram', // grunt-shell task
'connect:livereload',
'watch'
]);
以下是 shell 的配置方式:
grunt.initConfig({
...
shell: {
options: {
failOnError: false
},
hologram: {
command: 'bundle exec hologram'
},
},
...
}