扫码关注官方订阅号
我的完整项目使用ng build --prod编译后大小是1713k,如图所示
使用ng build --prod --aot 之后大小还是1713k;
--aot 还需要别的配置参数才能有效吗?
4.或者说,使用--aot参数之前,还要进行摇树优化?
欢迎选择我的课程,让我们一起见证您的进步~~
--prod turns on AOT, you don't need to pass both options. See this section of the docs: https://github.com/angular/an...这个是github上面,人家的回答,不知道有没有用。
--prod 默认 开启了--aot ,所以在使用--prod 和 --prod --aot一样啦
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
--prod turns on AOT, you don't need to pass both options. See this section of the docs: https://github.com/angular/an...
这个是github上面,人家的回答,不知道有没有用。
--prod 默认 开启了--aot ,所以在使用--prod 和 --prod --aot一样啦