【问题标题】:Run ember build w/ watch and livereload使用 watch 和 livereload 运行 ember build
【发布时间】:2015-08-10 21:47:43
【问题描述】:

我目前正在使用命令:

$ ember build --watch --output-path=../public/

构建我的 ember 应用程序。有什么方法可以通过 livereload 实现相同的目标?

谢谢。

【问题讨论】:

    标签: javascript ember.js livereload


    【解决方案1】:

    你为什么不直接使用ember serve?它也有--output-path,如果你必须让它是../public/而不是dist

    ember serve --output-path=../public/
    

    【讨论】:

    • 好吧,因为我的 ember 应用程序是由 Koa 提供的。也许这不是继续的好方法。
    • @Cohars 啊,没问题。我之前已经在 WordPress 管理员中嵌入了 ember,并在其上重新加载。我只是使用我自己的基本 html,但链接到相同的脚本。只需运行 ember-serve 即可对其进行实时重新加载和构建。
    • 好的。我最初的计划是避免在终端选项卡中运行我的 Koa 应用程序并在另一个选项卡中运行,但我似乎必须这样做。
    猜你喜欢
    • 1970-01-01
    • 2017-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-05
    • 2019-04-23
    • 2014-02-24
    • 1970-01-01
    相关资源
    最近更新 更多