How can I disable AOT in angular2?

前端 未结 3 1641
臣服心动
臣服心动 2021-02-10 00:00

I got something like this:

ng build --prod --no-aot

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

ng build --         


        
相关标签:
3条回答
  • 2021-02-10 00:17

    Just run command ng build -prod -aot=false. This will disable the aot compiler.

    0 讨论(0)
  • 2021-02-10 00:24

    Update: For Angular 6+

    Use the following command to disable AOT mode:

    $ ng build --prod --aot=false --build-optimizer=false
    
    0 讨论(0)
  • 2021-02-10 00:34

    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.

    0 讨论(0)
提交回复
热议问题