title: How to include Underscore.js in angular2 project built using angular-cli
body: <p>I want to include underscore.js inside <strong>angular2 project built using angular-cli</strong>.
  Till now I am unable to do so. I tried so far:</p>
  
  <p>1- npm install underscore --save</p>
  
  <p>2- tsd install underscore</p>
  
  <p>3- script src="node_modules/underscore/underscore.js"  , reference in index.html</p>
  
  <p>4- inside system-config.js</p>
  
  <pre><code>/** Map relative paths to URLs. */
  var map = {
      'underscore': '../node_modules/underscore/underscore.js'
  };
  /** User packages configuration. */
  var packages = {
      'underscore': '../node_modules/underscore/underscore.js'
  };
  </code></pre>
  
  <p>5- import * as _ from 'underscore';</p>
  
  <p>But underscore.js is not getting copied in 'dist' directory during run-time , and browser complain of not finding underscore.js. I think I am missing something at Point#4.
  Any help is much appreciated as I am beginning learning angular2.
  Please remember that this project is made by angular-cli, and not by any other seed project. Other than Underscore.js, project is working fine.</p>
  
  <p>[EDIT]
  package.json has "underscore": "^1.8.3" in dependencies</p>