Angular (v4) ng serve init extremely slow


#1

Trying to run my application using:

ng server --host 0.0.0.0 --port 8080

build happens, continues until:
92% chunk asset optimization

and there it sits for a l o n g t i m e

to the point where I was going to give up and declare it hung. In fact I killed it a couple of times before just letting it sit there for a long time when it did eventually complete.

Is this expected?


#2

Yes, it does take a little extra time. Just ran mine - took 51 seconds (I have the Pro account - so I have a bit more cpu power than the free accounts). Below is the command. Its only slow to start it - then when its watching & recompiling every time you press Save - it’s much much quicker.

ng serve --host 0.0.0.0 --port 8080 --live-reload-port 8081