Chapter 12: Bringing an Angular App to Production
A web application should typically run on the web and be accessible by anyone and from anywhere. As such, it needs two essential ingredients: a web server that is going to host the application and a production build of the application to deploy to that server. In this chapter, we are going to focus on the second part of the recipe. But what do we mean by production build?
In a nutshell, a production build of a web application is an optimized version of the application code that is smaller, faster, and more performant. Primarily, it is a process that takes all the code files of the application, applies optimization techniques, and converts them to a single bundle file.
In the previous chapters, we have gone through many parts that are involved when building an Angular 10 application. We need just one last piece to connect the dots and make our application available for anyone to use, which is to build it and deploy it to a web...