如何让yeoman重新加载bla.html而不是index.html

时间:2013-03-24 20:46:39

标签: yeoman

当对根中的任何html文件进行更改时,yeoman会触发重新加载任务,但是,yeoman仅对http://localhost:3501/index.html执行此操作。 我怎么让自耕农知道我想重装http://localhost:3501/bla.html

也许有些Gruntgile.js配置?

1 个答案:

答案 0 :(得分:1)

Yeoman 1.0没有问题,这很容易安装。这是一个快速指南:

  1. 确保已使用NPM安装节点
  2. 卸载旧版本的Grunt
  3. 使用NPM安装要求:npm install -g yo grunt-cli bower
  4. 您现在拥有了所需的一切,您可以运行yo以确认您安装了正确的版本。
  5. 依赖性很少,它们被转移到基于每个项目的基础。

    您可以在这里的网站上阅读更多内容http://yeoman.io Make sure that you read the migration guide.

    注意:他们的wiki说它不适用于Windows,不再是这种情况了,我运行的是Windows 7,它就像魅力一样。