【发布时间】:2025-12-22 07:30:11
【问题描述】:
咕噜“看”不想继续。
问题: 运行“监视”任务 等待... 警告:路径必须是字符串。收到未定义
这是 Gruntfile.js 中的 grunt watch:
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
}
},
【问题讨论】:
标签: javascript gruntjs grunt-contrib-watch