【发布时间】:2015-09-18 22:15:52
【问题描述】:
我正在使用Browser Sync CLI 提供一些基本的 html/css/js 文件,它告诉我在 html 文件中手动包含 js 脚本。
如果我用节点运行它,我可以使用bs-snippet-injector plugin,但看起来我不能通过命令行工具使用插件。
我试图让这个尽可能简单。
【问题讨论】:
标签: javascript html command-line browser-sync
我正在使用Browser Sync CLI 提供一些基本的 html/css/js 文件,它告诉我在 html 文件中手动包含 js 脚本。
如果我用节点运行它,我可以使用bs-snippet-injector plugin,但看起来我不能通过命令行工具使用插件。
我试图让这个尽可能简单。
【问题讨论】:
标签: javascript html command-line browser-sync
我想通了,我没有使用--server 选项;我包含了它,它按预期工作。
【讨论】: