How it works...
The wonders of file minification and compression are truly remarkable when you compare the file sizes of assets at each stage of optimization. While in development mode, our entire application weighs in at nearly 4.5 megabytes of resources. Building our Angular application with production mode (ng build -prod) will yield significant improvements in the total file size of our application, reducing our overall page size to a reasonable 1.4 megabytes. These reductions in file size are mostly due to the removal of source maps and unnecessary development mode code from the application as well as file savings through file minification.
However, with Gzip added to the equation, we can further compress our assets to an even smaller ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access