When I use ng serve and run my webapp using the webpack angular-cli provides for just the front end dev environment everything renders perfectly but when I use ng build or ng build --prod and ran it using an express server and back end it didn't load any images, css or javascript, just the raw html from the angular app. I searched around and found angular-cli.json and added my img folder, fonts folder, css folder into assets and all js files into the scripts array and css files into the styles array but now it wont even build because all the paths are broken.
Its giving me two pages of red text in my console telling me images, fonts and other files cant be resolved. Clearly it has changed around the relative pathing and broken everything horribly, how do I fix this on build without having to hardcode path changes?