ng build hangs in VSTS

2.2k Views Asked by At

I'm using following build command in VSTS to build my angular 6 project in VSTS

ng build --prod --base-href /myproject/ --no-progress --build-optimizer=false

Builds hangs in 90% and not getting completed. The same command working fine in local machine.

Helps much appreciated.

1

There are 1 best solutions below

0
On BEST ANSWER

I have tried the following command, its working fine. Looks like memory allocation problem only

node --max_old_space_size=102400 node_modules/@angular/cli/bin/ng build --prod