文章詳情頁
javascript - angular-cli使用ng build --prod 和ng build --prod --aot 打包文件大小相同?
瀏覽:127日期: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. 求救一下,用新版的phpstudy,數據庫過段時間會消失是什么情況?2. linux運維 - python遠程控制windows如何實現3. javascript - 從mysql獲取json數據,前端怎么處理轉換解析json類型4. django - Python error: [Errno 99] Cannot assign requested address5. android - 安卓做前端,PHP做后臺服務器 有什么需要注意的?6. python小白 關于類里面的方法獲取變量失敗的問題7. mysql - ubuntu開啟3306端口失敗,有什么辦法可以解決?8. thinkPHP5中獲取數據庫數據后默認選中下拉框的值,傳遞到后臺消失不見。有圖有代碼,希望有人幫忙9. extra沒有加載出來10. python - Scrapy如何得到原始的start_url
排行榜
