如何在 angular2 中禁用 AOT? [英] How can I disable AOT in angular2?

查看:28
本文介绍了如何在 angular2 中禁用 AOT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了这样的东西:

ng build --prod --no-aot

但是我不明白

ng build --prod  

ng build --prod --no-aot

推荐答案

更新:针对 Angular 6+

使用以下命令禁用 AOT 模式:

Update: For Angular 6+

Use the following command to disable AOT mode:

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

这篇关于如何在 angular2 中禁用 AOT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆