文章详情页
javascript - angular-cli使用ng build --prod 和ng build --prod --aot 打包文件大小相同?
浏览:311日期:2023-04-08 15:17:00
问题描述
我的完整项目使用ng build --prod编译后大小是1713k,如图所示
使用ng build --prod --aot 之后大小还是1713k;
--aot 还需要别的配置参数才能有效吗?
4.或者说,使用--aot参数之前,还要进行摇树优化?
问题解答
回答1:--prod turns on AOT, you don’t need to pass both options. See this section of the docs: https://github.com/angular/an...这个是github上面,人家的回答,不知道有没有用。
回答2:--prod 默认 开启了--aot ,所以在使用--prod 和 --prod --aot一样啦
标签:
JavaScript
相关文章:
排行榜

网公网安备