Test Angular Build Locally
Leonel Elimpe
by Leonel Elimpe
~1 min read


  • Angular
  • Angular CLI

To test your Angular build locally:

  1. Build your app: ng build --prod
  2. Install http-server for serving the app: npm i -g http-server
  3. cd (change directory) into the the build location and run the app with: http-server
  4. Open http-server url appending /index.html to it, should look something like this