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.

Angular Posted Oct 26, 2020

Join the Newsletter

Subscribe to get our latest content by email.
    We won't send you spam. Unsubscribe at any time.
    We use cookies to provide you with a great user experience, analyze traffic and serve targeted promotions.   Learn More   Accept