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
Angular6+
ng build --prod
Since Angular 7 you can just do ng serve --prod=true. Documentation: https://angular.io/cli/serve
ng serve --prod=true
I know the question asks about Angular 6 but Google got me here, so just for future reference.