Angular (v4) ng serve init extremely slow


Trying to run my application using:

ng server --host --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?


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 --port 8080 --live-reload-port 8081