I'm working on an angular 2 TypeScript project built off of Angular 2 Webpack Starter. I am having trouble hosting the site live. It's working great when I use npm run server and check localhost:3000
and also it works great when I run npm run server:prod and check localhost:8080
Nice!
I then go to host the site through the Github gh-pages branch. My project is named "SafeFoods" and gh-pages adds an extra SafeFoods into the path here in the address bar. The problem with this is that I have files looking to be loaded at a path that doesn't have SafeFoods (but is otherwise identical).
I have tried changing "baseUrl" in the webpack.common.js file, but this breaks the site when I run the dev server and prod server!
Does anyone know how I can make it so that the site works in all three situations? thanks.
live hosted site: https://jimtheman.github.io/SafeFoods/ original repo: https://github.com/JimTheMan/SafeFoods