TL;DW (Too long, didn’t watch): You can simply append the
--aotto your build instruction, like
ng build --prod --aot. Ya, it’s really that damn simple
This video you will learn about…
- how to use the Angular CLI to create a production bundle
- what Ahead-of-time (AoT) compilation is about
- how to use the Angular CLI to activate AoT compilation
You can download the source code I use in the video from my repository.