grunt-contrib-watch 태스크에서 작동하도록 livereload 옵션을 가져올 수 없습니다.Gruntjs 라이브 리로드가 작동하지 않습니다.
로컬 호스트 livereload.js 파일이 내 html 파일의 맨 아래에 첨부되어 있습니다.
내가 http://localhost:35729/
모두에 갈 때 내가 얻을은 다음
{ "tinylr": "에 오신 것을 환영합니다", "버전": "0.0.5은"}
모든 것이 설정해야 보인다 올바르게 작동합니다. 내가 grunt --verbose
을 실행할 경우에도 그것은 라이브 재 장전 서버가 포트에서 시작 말한다 : 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,
}
}
}
});
흠 ... localhost : 9000을 시도했는데 웹 페이지를 사용할 수 없다고합니다. 여기 내 gruntfile.js에 대한 링크입니다. http://jsfiddle.net/t73evmwj/ 내 프로젝트를보고 싶다면 여기에서 볼 수 있습니다. https :// /github.com/CodesummitGoats/Sparkplug-Framework – whatsnewsaes