What is the difference between ng build and ng serve?

the following is the major difference between ng build and ng serve in Angular
  • 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.

Buy Me A Coffee

Found this article helpful? Please consider supporting!

Ram
Ram

I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity. You can connect with me on Medium, Twitter or LinkedIn.

Leave a Reply

Your email address will not be published. Required fields are marked *