Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular-CLI slow - Chunk asset optimization and asset optimization taking a lot of time

Chunk asset optimization and asset optimization while developing angular 2 with angular-cli ng serve takes a lot of time on my older macbook, eg:

9952ms chunk asset optimization
2432ms asset optimization

Waiting this time on every change is getting pretty annoying. Is it possible to remove/reduce this time, that his does not happen on every change while developing?

like image 814
Manuel Avatar asked Oct 18 '22 21:10

Manuel


1 Answers

You could look into --sourcemap=false. Seat of the pants improvement:

225ms chunk assets processing, total Time: 38150ms

vs:

215612ms chunk assets processing, total Time: 251719ms

Debugging ability is degraded. https://github.com/angular/angular-cli/issues/5423

like image 199
majway27 Avatar answered Oct 29 '22 19:10

majway27