我正在使用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但无法正常工作。