Angular applications, when built, are treated as JavaScript, which is hosted on a server. Typically, during development, we make use of the ng serve command to quickly start up our development server and work with the application. This is a convenient method, but doesn't cater to production needs. This development build running locally of the application can grow big, as can be seen from the page size that gets downloaded to the user's browser. The numbers can be greater than 10 MB or 16 MB, which is not something you want to push to the end users accessing the application.
When we are ready to build and distribute the application, we go through a process of build optimization. Running the ng build command will produce our output in the /dist folder of the application. This, and other aspects of the build process, can be tweaked using the angular...