我試圖通過咕嚕在node.js的運行監視任務,但它並沒有爲我工作(這是我得到):咕嚕手錶不工作
$ grunt watch
warning: Maximum call stack size exceeded Use --force to continue.
這是手錶的一部分任務在Gruntfile.js:
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']);
我認爲這將有助於http://stackoverflow.com/questions/17033246/grunt-uglifym-call-stack-size-exceeded –