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 build

12.0MB vs 17.2MB

扫描二维码关注公众号,回复: 11798530 查看本文章

4、加载速度

5、在一个大项目中测试

tsconfig.app.json

 "angularCompilerOptions": {
    "enableIvy": true
  }

lvy:报错(ERROR in Cannot combine @Input decorators with query decorators), 待更新 

issues:

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

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


普通:

猜你喜欢

转载自blog.csdn.net/u013475983/article/details/98730744