title: Webpack import a node module in script
body: <p>I have a Webpack angular 2 application and I have a date picker module dependency with a library using Moment. The thing is that if I don't import it like :</p>
  
  <pre><code>&lt;script src="./../node_modules/moment/min/moment.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>a <code>moment is not defined</code> error is raised if I want to use it. I tried to import moment with require but it's not taken into account.</p>
  
  <p>The problem is that the script src tag works in local but in the webpack builded version we need to deploy the path with node_modules doesn't exist anymore. Is there a way to do it other than hard paste moment.min.js in a lib folder?</p>