當對根目錄中的任何html文件進行更改時,yeoman會觸發重新加載任務,但是,yeoman只會對http://localhost:3501/index.html
執行此操作。 如何讓yeoman知道我要重新加載http://localhost:3501/bla.html
?如何讓yeoman重新加載bla.html而不是index.html
也許一些Gruntgile.js配置?
當對根目錄中的任何html文件進行更改時,yeoman會觸發重新加載任務,但是,yeoman只會對http://localhost:3501/index.html
執行此操作。 如何讓yeoman知道我要重新加載http://localhost:3501/bla.html
?如何讓yeoman重新加載bla.html而不是index.html
也許一些Gruntgile.js配置?
Yeoman 1.0這樣做沒有問題,它很容易安裝。這裏是一個快速指南:
npm install -g yo grunt-cli bower
yo
以確認您安裝了正確的版本。有更多的依賴關係,他們被轉移到每個項目的基本。
您可以在這裏他們的網站上閱讀了很多http://yeoman.io Make sure that you read the migration guide.
注:他們的維基說,它不能在Windows工作,這是不再的情況下,我運行Windows 7和它的作品般的魅力。
適用於我的開箱即用型,您使用的是哪個版本? – 2013-03-26 16:32:57
v0.9.6我在Windows上,所以我沒有其他選擇。 – Birowsky 2013-03-28 18:45:12
v1在Windows上工作正常,並且支持這種重新加載。 – 2013-04-02 08:42:31