I am building the application in Angular6+, now I have run the command ng build --prod which gave me a dist folder. Now how to check or serve that
In my case I did next:
Install http-server globally
npm install http-server -g
Then inside the project directory (in the terminal), I run
http-server dist/[your-project-name]
Now you can visit http://localhost:8080/index.html to view your application. But when I restart the browser page I have to add again /index.html into URL.
It works in Angular 7.x.x version.