文章詳情頁
javascript - angular-cli使用ng build --prod 和ng build --prod --aot 打包文件大小相同?
瀏覽:98日期: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. python - 獲取到的數據生成新的mysql表2. javascript - js 對中文進行MD5加密和python結果不一樣。3. mysql里的大表用mycat做水平拆分,是不是要先手動分好,再配置mycat4. window下mysql中文亂碼怎么解決??5. sass - gem install compass 使用淘寶 Ruby 安裝失敗,出現 4046. python - (初學者)代碼運行不起來,求指導,謝謝!7. 為啥不用HBuilder?8. python - flask sqlalchemy signals 無法觸發9. python的文件讀寫問題?10. 為什么python中實例檢查推薦使用isinstance而不是type?
排行榜
