I have created a project from angular CLI, placed an image under assets folder. It works fine in localhost environment, but when deployed to github pages it's throwing 404.
After build --prod --base-href "my-project"
Base href is changed in index.html of dist directory.
<base href="my-project">
After deploying to github page it couldn't find the image.
GET https://srk.github.io/assets/srk-favicon.ico 404 (Not Found)
I guess the URL should be https://srk.github.io/my-project/assets/srk-favicon.ico