使用 Angular CLI 進行 AoT 編譯

自 beta 17 以來, Angular CLI 命令列介面具有 AoT 編譯支援。

要使用 AoT 編譯構建你的應用程式,只需執行:

ng build --prod --aot