title: Exclude unnecessary node modules from war
body: <p>I am creating a web application in which I using Maven, Spring, Hibernate, Angular. The size of war file if very large(151 MB) out of which 107 MB for node modules so please tell me how can I remove unnecessary node modules from war file to keep its size reasonable.
  This is my npm dependencies : </p>
  
  <pre><code>"dependencies": {
      "@angular/common": "~2.4.0",
      "@angular/compiler": "~2.4.0",
      "@angular/core": "~2.4.0",
      "@angular/forms": "~2.4.0",
      "@angular/http": "~2.4.0",
      "@angular/platform-browser": "~2.4.0",
      "@angular/platform-browser-dynamic": "~2.4.0",
      "@angular/router": "~3.4.0",
      "angular-in-memory-web-api": "~0.2.4",
      "angular2-datatable": "^0.6.0",
      "core-js": "^2.4.1",
      "lodash": "^4.17.4",
      "mydatepicker": "^1.6.1",
      "ng2-pdf-viewer": "^1.1.0",
      "rxjs": "5.0.1",
      "systemjs": "0.19.40",
      "zone.js": "^0.7.4",
      "ng2-auto-complete": "^0.10.9"
  
  
    }
  </code></pre>