December 2017
Beginner
372 pages
10h 32m
English
In the preceding section, we saw how to build the application in development mode. There are not many differences when building the application in production mode. Just add the prod flag and Angular CLI will build the code in production mode as shown in the following command:
ng build --prod
This will result in the following output from the Angular CLI:

As we can see, the main difference here with respect to dev build is the removal of the sourcemap files from the list. We saw in the preceding section, where we discussed the flags available with ng build and their default values in dev and prod ...
Read now
Unlock full access