lvyパフォーマンス比較

1.新しいプロジェクトを作成する

lvy:--enable-ivy(angular 9以降、デフォルトはivyです)

ng new hy-bi-lvy --enable-ivy
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? Less   [ http://lesscss.org
 ]

従来型:

ng new test
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? Less   [ http://lesscss.org
 ]

2.パッキング

prod:ng build --prod --base-href --build-optimizer --output-hashing = all

619KB vs 634KB

従来型:ngビルド

12.0MB対  17.2MB

4.読み込み速度

5.大きなプロジェクトでテストする

tsconfig.app.json

 "angularCompilerOptions": {
    "enableIvy": true
  }

lvy:报错(@Inputデコレータとクエリデコレータを組み合わせることはできません)のエラー、待更新 

問題:

https://github.com/angular/angular/issues/31398

https://github.com/NG-ZORRO/ng-zorro-antd/issues/3682


普通:

 

 

おすすめ

転載: blog.csdn.net/u013475983/article/details/98730744