October 2017
Intermediate to advanced
280 pages
6h 50m
English
The Angular's AOT compilation is already supported in the most popular starters and the CLI.
At the time of writing, Angular CLI performs AOT compilation by default in the production build. To get the optimized production assets, run this command:
$ ng build --prod
Angular Seed introduced AOT compilation when Angular 2.0.0-rc.5 was released. With the seed, you can take advantage of all the benefits that come with it by running the following command:
$ npm run build.prod.aot
By executing the preceding commands, you'll get a well-optimized production build of your application.
Read now
Unlock full access