文章詳情頁
javascript - angular-cli使用ng build --prod 和ng build --prod --aot 打包文件大小相同?
瀏覽:263日期: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下的nginx壓力測試2. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””3. mac里的docker如何命令行開啟呢?4. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?5. nignx - docker內nginx 80端口被占用6. docker容器呢SSH為什么連不通呢?7. angular.js使用$resource服務把數據存入mongodb的問題。8. 如何解決Centos下Docker服務啟動無響應,且輸入docker命令無響應?9. docker start -a dockername 老是卡住,什么情況?10. dockerfile - 我用docker build的時候出現下邊問題 麻煩幫我看一下
排行榜

網公網安備