0

I need your help,

My question is in our project angular, we use in script : run build my-project && npm install ./dist/my-project and then ng serve.

All is ok, the server start,

But when i modify something, the server does not restart automatically. When i asked my friend in the team, he says it normal that the server does not restart and does not detect modification because we use "ng build" we have a lib, and we should modify this..

You have an idea ? what i can do ?

Thanks

Andrew Coates
  • 1,775
  • 1
  • 10
  • 16
Rachid
  • 1
  • 2

1 Answers1

0

ng build solely builds files and places them in the output folder. It does not serve them or communicate with a web browser in any way. This is the function of ng serve which is designed specifically to provide the functionality required.

Also check this stackoverflow similar post maybe this might help you somehow. But its ng serve that hot reloads or detect changes etc

Wahab Shah
  • 2,066
  • 1
  • 14
  • 19