We have a AngularJS application that contains separate angular applications that run independently. each module is in a separate path like
localhost:8080/OurMainApplication/angular1Application1 localhost:8080/OurMainApplication/angular1Application2
Now we are going to add a new module in Angular 5 that is in a different path like lets say
localhost:8080/OurMainApplication/angular5Application1
so thing is that AngularJS has static content that if we do a change and redeploy into server it will get automatically affected in the browser. but for the angular 5 application in order to run it we need we have 2 options
- "ng build" to have dist folder (too expensive to do every time we do a simple change)
- "ng serve" (this is okay but its running in its own server)
Is there any way to auto compile ONLY the files we change (like "ng serve") so that I can redeploy the angular 5 compiled changes into the running tomcat server (when we are developing) because our back-end service and angular application both are running in the same server and don't want a new server to run the new angular 5 application that we are going to introduce.
Are there ways in angular-cli or some other technique to auto compile once any of the files in angular 5 application gets updated