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
Update: For Angular 6
Use the following command to disable AOT mode:
$ ng build --prod --aot=false --build-optimizer=false
Bhavani Raju
Just run command ng build -prod -aot=false
. This will disable the aot compiler.
The flag --prod
does the AOT compilation by default. If you want to build without AOT then simply run ng build
only without any flag.
来源:https://stackoverflow.com/questions/45814758/how-can-i-disable-aot-in-angular2