Reputation: 16264
I have a Node Express project created via express-generator
in VS Code. I then added Angular through @angular/cli via ng new
.
The project works fine. I run it in debug by launching the main Node project. However, I have to run ng build
and restart the Code debugging session each time I made changes to the Angular project. How do I set up the watch mode for the Javascript to be rebuilt when changes are saved?
Upvotes: 1
Views: 709
Reputation: 2192
Instead of ng build
you can use ng serve
.It will watch automatically for changes.
Upvotes: 0
Reputation: 598
What about ng serve
command.
From Angular quick start guide https://angular.io/guide/quickstart#serve
The ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files.
Upvotes: 1