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
From Terminal: $ npm install http-server -g
From Angular Project Dir. Lets say your Angular project name is ngx. $ ng build $ http-server dist/ngx Starting up http-server, serving dist/ngx Available on: http://127.0.0.1:8080 http://192.168.43.54:8080 Hit CTRL-C to stop the server
Enjoy!