November 2019
Beginner
436 pages
8h 52m
English
When developing locally, you may want to use live reloading (or hot reloading). However, when packaging for distribution, the application needs to have access to the production output.
The Angular CLI allows us to quickly compile a web application in production mode. You can do this by running the following command:
ng build --prod
According to the Angular documentation, the —prod switch does the following:
This means that you get a minimal and highly optimized output, as follows:
You will probably run this command often when ...
Read now
Unlock full access