【问题标题】:Inject Browser Sync script using the CLI使用 CLI 注入浏览器同步脚本
【发布时间】:2015-09-18 22:15:52
【问题描述】:

我正在使用Browser Sync CLI 提供一些基本的 html/css/js 文件,它告诉我在 html 文件中手动包含 js 脚本。

如果我用节点运行它,我可以使用bs-snippet-injector plugin,但看起来我不能通过命令行工具使用插件。

我试图让这个尽可能简单。

【问题讨论】:

    标签: javascript html command-line browser-sync


    【解决方案1】:

    我想通了,我没有使用--server 选项;我包含了它,它按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-06-25
      • 1970-01-01
      • 2015-01-20
      • 2023-04-03
      • 1970-01-01
      • 2017-04-26
      • 1970-01-01
      相关资源
      最近更新 更多