I'm trying to serve an Angular project using lite-server. The server responds with a 404 whenever a file in assets folder is requested. I have created a bs-config.json and setting the routes option didn't work.
Here is my directory structure
node_modules/ src/ ..app/ ....index.html ..assets/ ....img/ ..config/ ....bs-config.json
bs-config.json
{
"port": 8000,
"files": ["../src/**/*.{html,htm,css,js}"],
"server": {
"baseDir": ["./src/app", "./"],
"routes": {
"/assets": "../assets"
}
}
}
How I try to load the files. (index.html)
<img src="assets/img/image.png">