Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 ng-build every time when code changed?

I developing a MEAN app. In the past I only used Angular and ng-serve was a bless to try code out and develop.

Now in combination with Node.js as a server, that loads Angular in my so-called "public" folder, I have to do "ng build" every time and it does go through all files, even if I just changed a little code on one component Typescript.

My question? What can I do to develop faster using Node.js and Angular 2 without hitting every time "ng build" on changed code?

like image 896
user3332010 Avatar asked Nov 30 '25 01:11

user3332010


1 Answers

I think ng build --watch can help.

like image 185
Shiv N Savsani Avatar answered Dec 01 '25 15:12

Shiv N Savsani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!