angular执行ng build进行压缩。

ng build --prod --build--optimizer
原文地址:https://www.cnblogs.com/yiweiyihang/p/12359159.html