I encountered an issue with my project. Everything was running smoothly, and even when I executed the command ng build --prod
, it compiled successfully and generated the dist folder in my project directory. However, after copying this folder to the htdocs
directory where XAMPP is installed on my machine, accessing the app at localhost/dist resulted in errors that prevented the app from running. The specific errors are as follows:
GET http://localhost/styles.34c57ab7888ec1573f9c.css 404 (Not Found)
GET http://localhost/main.d3384476e7e827a9f05c.js 404 (Not Found)