【问题标题】:Yeoman LiveReload support for templates?Yeoman LiveReload 支持模板吗?
【发布时间】:2013-09-01 21:49:16
【问题描述】:

LiveReload 很棒 (now that it works :)。唯一似乎不起作用的部分是当我更改模板文件时,我必须手动刷新。有什么办法让它工作吗?

【问题讨论】:

    标签: yeoman livereload


    【解决方案1】:

    默认为livereloads the top-level HTML files。如果您将其嵌套在子文件夹中,则需要更新通配符。您还需要确保已将模板编译 grunt 任务添加到 watch。

    【讨论】:

    • 我只是将开箱即用的配置与骨干生成器一起使用。似乎应该为我处理。 :)
    • 在那个 repo 上开一张票 ;)
    猜你喜欢
    • 2012-10-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多