我正在尝试同时使用守卫 livereload 和守卫指南针。这是我的文件
示例 Guardfile
# More info at https://github.com/guard/guard#readme
guard 'compass' do
watch('^sass/(.*)\.s[ac]ss')
end
guard 'livereload' do
watch(%r{.+\.(css|html|js)$})
end
# This will concatenate the javascript files specified in :files to public/js/all.js
#guard :concat, type: "js", files: %w(), input_dir: "public/js", output: "public/js/all"
#guard :concat, type: "css", files: %w(), input_dir: "public/css", output: "public/css/all"
#guard 'uglify', :destination_file => "public/javascripts/application.js" do
# watch (%r{app/assets/javascripts/application.js})
#end
当我开始保护时,没有启用 chrome live reload 扩展,我的 sass 文件被编译并且运行良好。
但是当我启用 livereload 扩展时,我的终端说浏览器已连接,然后当我在我的 sass 文件中进行更改时,什么也没有发生(页面没有重新加载,sass 文件也没有被编译)。
有没有人有任何想法?