Ember CLI Live Reload不工作 [英] Ember CLI Live Reload Not Working
本文介绍了Ember CLI Live Reload不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经看过其他类似的问题此处和 here ,但这两个都不适合我。
I've seen other similar questions here and here but neither of those worked for me.
我在一个mac上,只是使用npm安装了ember cli,我以为它会开箱即用。以下是服务器输出:
I'm on a mac and simply installed ember cli using npm and I thought it would work out of the box. Here is the server output:
version: 0.1.4
Could not find watchman, falling back to NodeWatcher for file system events
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
Build successful - 2456ms.
Slowest Trees | Total
-------------------------------+----------------
EsnextFilter | 877ms
TreeMerger | 380ms
Concat | 375ms
JSHint - Tests | 178ms
EsnextFilter | 146ms
ES6Concatenator | 135ms
推荐答案
我不是唯一一个这个问题我的朋友找到了一个解决方案。
I wasn't the only one with this issue and my friend found a solution that works.
将以下行添加到项目根目录中的.ember-cli:
Add the following lines to your .ember-cli in the root of your project:
"liveReload": true,
"watcher": "polling"
重新启动服务器后,应该注意您的目录的更改。
Once you restart the server, it should watch for changes to your directory.
这篇关于Ember CLI Live Reload不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文