我似乎没办法让肝部的人去做“咕噜-”
我将本地主机livereload.js文件附加在html文件的底部。
当我去http://localhost:35729/的时候,我得到的只有以下内容:
{“tinylr”:“欢迎”,“版本”:“0.0.5”}
一切似乎都安排好了,运转正常。即使我运行grunt --verbose,它也说Live服务器是在端口35729上启动的。
下面是我在gruntfile文件中的表配置
任何帮助都将不胜感激!
watch: {
options:{
livereload: true,
}
styles: {
files: ['less/**/*.less'], // which files to watch
tasks: ['less'],
options: {
nospawn: true
}
},
html:{
files: ['site/**/*.html', 'includes/**/*.html'],
tasks: ['includes'],
options: {
nospawn: true,
}
}
}
}); 发布于 2014-11-30 11:53:47
你看到的输出是正确的。http://localhost:35729是LiveReload服务器,而不是应用程序。
查看您的代码,您还没有将LiveReload脚本包含在index.html中。
我已经给你发了一个拉请求,可以确认LiveReload正在工作。
https://stackoverflow.com/questions/27205651
复制相似问题