文章详情页
javascript - angular-cli使用ng build --prod 和ng build --prod --aot 打包文件大小相同?
浏览:296日期: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
相关文章:
1. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””2. angular.js - angular内容过长展开收起效果3. Docker for Mac 创建的dnsmasq容器连不上/不工作的问题4. docker网络端口映射,没有方便点的操作方法么?5. golang - 用IDE看docker源码时的小问题6. angular.js - angularjs的自定义过滤器如何给文字加颜色?7. dockerfile - [docker build image失败- npm install]8. docker绑定了nginx端口 外部访问不到9. docker容器呢SSH为什么连不通呢?10. debian - docker依赖的aufs-tools源码哪里可以找到啊?
排行榜

网公网安备