我有一個連接後衛 - livereload到瀏覽器的問題。每次我嘗試啓用LiveReload插件時,它都會連接到瀏覽器並自動斷開連接。 LiveReload那麼說明這一點:Chrome LiveReload分機/後衛 - livereload斷開瀏覽器
http://img21.imageshack.us/img21/2265/bugqf.png
我Guardfile:
guard 'livereload' do watch(%r{.+\.(html|css|js)$}) end
控制檯輸出:
PS D:\workspace\xampp\htdocs\lab\test-menu> guard 04:22:12 - INFO - Guard uses TerminalTitle to send notifications. 04:22:12 - INFO - Guard is now watching at 'D:/workspace/xampp/htdocs/lab/test-menu' 04:22:12 - INFO - LiveReload 1.6 is waiting for a browser to connect. [Listen warning]: Missing dependency 'wdm' (version '~> 0.1')! Please run the following to satisfy the dependency: gem install --version '~> 0.1' wdm For a better performance, it's recommended that you satisfy the missing dependency. Listen will be polling changes. Learn more at https://github.com/guard/listen#polling-fallback. [1] guard(main)> 04:22:17 - INFO - Browser connected. 04:22:18 - INFO - Browser disconnected. 04:22:21 - INFO - Browser connected. 04:22:22 - INFO - Browser disconnected. 04:22:24 - INFO - Browser connected. 04:22:25 - INFO - Browser disconnected.
版本:
- 後衛:1.7.0
- livereload:2.0.9
- 鉻:26.0.1410.64米
- 窗口:8
對不起,我英文不好。謝謝,亞當。
我解決了缺少依賴關係,但它仍然無法正常工作,但它並未顯示瀏覽器連接或瀏覽器斷開連接 – aazo 2013-04-11 13:44:13