I'm using the Angular CLI to compile my Angular app down to JS and CSS files. I'm using ng build --environment prod to compile.
When looking at the index.html file in the dist folder, I see that the JS and CSS files are linked properly like so:
<script type="text/javascript" src="script.js"></script>
But then when I open the index.html file, Safari complains that these files aren't found. But when I edited the HTML file like so:
<script type="text/javascript" src="file:///Users/me/proj/dist/script.js"></script>
Everything works... How can I fix this? Here's how the dist folder looks like, roughly.
dist
|--------- index.html
|--------- styles.css
|--------- script.js