johnpapa / johnpapa/lite-server
How to properly configure multiple routes in lite-server
- Dominant language
- JavaScript
- Stars
- 2.3k
- Forks
- 262
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the lite-server to develop an Angular application. I have the following project structure, very simple:
```
build/
foo/
index.html (references foo.js script)
bar/
index.html (references bar.js script)
foo.js
bar.js
bsconfig.json
```
What a I want to do is to access `localhost:8000/foo` and get `foo/index.html`loading `foo.js` script as well as access`localhost:8000/bar` and get `bar/index.html`loading `bar.js`.
I've read the Browsersync options documentation and tried configuring the `bs-config.json` file using routes but I couldn't get it working.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.