Grunt「Watch」不想繼續。Grunt「watch」警告:路徑必須是字符串。收到undefined
問題: 運行「監視」任務 正在等待... 警告:路徑必須是字符串。收到未定義
這裏是繁重的手錶Gruntfile.js:
watch: {
//Watch files for changes during "grunt serve"
main: {
options: {
livereload: true,
livereloadOnError: false,
spawn: false
},
files: [createFolderGlobs(['*.js', '*.less','*.html','*.json']), '!src/bower_components/**/*.js', '!src/js/**/*.js', '!_SpecRunner.html','!.grunt'],
tasks: [] //all the tasks are run dynamically during the watch event handler
}
},
對於其他人,這不適合我。 '手錶'一直安裝。它可能很容易是別的東西。 –