Closed ajit007kumar closed 4 years ago
It looks to me like this is something happening in the general build pipeline rather than specifically the Angular compiler part, so transferring over to the CLI project...
Hi @ajit007kumar,
Would you be able to share a reproduction even privately?
From the above it looks like chunk modules optimization
and chunk asset optimization
phases are taking the most time (approx: 30mins each). It is expected that these 2 phases take some time especially when providing a lot of files in the scripts
and styles
options. Since both JS and CSS gets minified during these phases. That being said, it's the first time I see reports of such lengthy builds.
Also, It would be good to know the below:
ng build
(Ie: the size of files)?Hi @ajit007kumar
try this command instead of use ng build
directly:
node --max_old_space_size=4096 ./node_modules/.bin/ng build ... --source-map --aot --prod
Closing as there hasn't been any response from the issue author. Please re-open if you are still seeing problems here.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
🐞 bug report
Affected Package
When I build my project with below command it is taking more then 1.5 hr to complete its build process node --max_old_space_size=12000 node_modules/@angular/cli/bin/ng build --prod=true --progress=true --verbose=true
Description