1. Create a new project
lvy: --enable-ivy (After angular 9, the default is 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
]
conventional:
ng new test
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? Less [ http://lesscss.org
]
2. Packing
prod:ng build --prod --base-href --build-optimizer --output-hashing=all
619KB vs 634KB
Conventional: ng build
12.0MB vs 17.2MB
4. Loading speed
5. Test in a big project
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
ordinary: