【发布时间】:2016-12-08 13:53:42
【问题描述】:
我正在使用lite-server 开发一个Angular 应用程序。我的项目结构如下,很简单:
build/
foo/
index.html (references foo.js script)
bar/
index.html (references bar.js script)
foo.js
bar.js
bsconfig.json
我想做的是访问localhost:8000/foo并获取foo/index.html加载foo.js脚本以及访问localhost:8000/bar并获取bar/index.html加载bar.js。
我已阅读 Browsersync options 文档并尝试使用 routes 配置 bs-config.json 文件,但无法正常工作。
【问题讨论】:
标签: angular browser-sync lite-server