9

node.js で grunt によって監視タスクを実行しようとしましたが、うまくいきません (これは私が得たものです):

$ grunt watch
warning: Maximum call stack size exceeded Use --force to continue.

これは、Gruntfile.js の watch タスクの一部です。

watch: {
  less: {
    files: 'src/less/*.less',
    tasks: ['clean', 'recess', 'copy']
  },
  js: {
    files: 'src/js/*.js',
    tasks: ['clean', 'jshint', 'concat', 'uglify', 'copy']
  },
  theme: {
    files: 'src/theme/**',
    tasks: ['clean', 'recess', 'copy']
  },
  images: {
    files: 'src/images/*',
    tasks: ['clean', 'recess', 'copy']
  }
}

grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('watch', ['watch']);
4

2 に答える 2