What is the purpose of the --prod flag when building an Angular application using the Angular CLI?

  • Create a new production app
  • Enable Angular Pro mode
  • Generate production code
  • Optimize for production
The --prod flag in the Angular CLI build command is used to optimize the application for production, resulting in smaller and faster code.
Add your answer
Loading...

Leave a comment

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