How can I disable AOT in angular2?

jesusverma picture jesusverma · Aug 22, 2017 · Viewed 9.6k times · Source

I got something like this:

ng build --prod --no-aot

But I am not able to understand what is the difference between

ng build --prod  

and

ng build --prod --no-aot

Answer

Melchia picture Melchia · Jul 4, 2018

Update: For Angular 6+

Use the following command to disable AOT mode:

$ ng build --prod --aot=false --build-optimizer=false