johnpapa / johnpapa/lite-server

How to properly configure multiple routes in lite-server

Open
#93 5 comments 4 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.