What is the difference between ng build and ng serve?

  • ng build command builds the angular application and generates the build artifacts which are saved under the /dist folder in the application directory.
  • ng serve command builds the angular application in the memory, without saving the artifacts to any external folder and runs the application on the web server.
  • ng build command builds the angular application and generates the build artifacts which are saved under the /dist folder in the application directory.
  • ng serve command builds the angular application in the memory, without saving the artifacts to any external folder and runs the application on the web server.
Default image
Sriram Mannava

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity.

Leave a Reply