我正在使用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 选项文档并尝试bs-config.json
使用配置文件,routes
但无法正常工作。