Preparing the production bundle
The environmental needs of a frontend application running in production are different from the development environment we have seen so far in the book.
When we are developing, we look for speed in compilation, powerful debugging, and profiling tools to analyze our code, as well as generating boilerplate code, among other features.
Even though it costs more to process on our local machine, requires more space to generate instrumented bundles to be able to perform debugging, and requires greater network consumption to download development tools, all of this is important for the team’s productivity, and the Angular framework delivers it in a robust ecosystem.
When we are talking about frontend web code running in production, the objective is almost the opposite. We want our code to be as small and optimized as possible, to be downloaded and executed by our users in the most performant way possible.
With this objective in mind, the Angular...