7

grunt-shellでGrunt Task Runner を使用すると、ctrl-c [SIGINT] を使用して grunt を終了できません。

grunt.registerTask('serve', [
  'less',
  'autoprefixer',
  'shell:hologram', // grunt-shell task
  'connect:livereload',
  'watch'
]);

シェルの構成方法は次のとおりです。

grunt.initConfig({

...

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

...

}
4

1 に答える 1