title: How to auto compile angular 5 application when there are any code changes presented
body: <p>We have a AngularJS application that contains separate angular applications that run independently. each module is in a separate path like</p>
  
  <blockquote>
    <p>localhost:8080/OurMainApplication/angular1Application1
    localhost:8080/OurMainApplication/angular1Application2</p>
  </blockquote>
  
  <p>Now we are going to add a new module in Angular 5 that is in a different path like lets say</p>
  
  <blockquote>
    <p>localhost:8080/OurMainApplication/angular5Application1</p>
  </blockquote>
  
  <p>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 </p>
  
  <ol>
  <li>"ng build" to have dist folder (too expensive to do every time we do
  a simple change) </li>
  <li>"ng serve" (this is okay but its running in its own server)</li>
  </ol>
  
  <p>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.</p>
  
  <p>Are there ways in angular-cli or some other technique to auto compile once any of the files in angular 5 application gets updated</p>