title: Angular2 deploying to production environment questions
body: <p>Some questions to put angular2 web project to production environment </p>
  
  <ol>
  <li>We do development on lite server but what is best for production? Is is some other server module of <code>nodejs</code>? Technically we can have any server (apache, tomcat, etc).</li>
  <li>How should we do source code management for below context.
  
  <ul>
  <li>browser must include <code>js</code> files so project should have js files when deployed</li>
  <li>In standard java project we just commit <code>.java</code> files and uses jenkins (may be other tools) to compile and make the deploy-able structure</li>
  <li>Should we follow same strategy here? i.e. don't commit compiled js files and deploy using some <code>node</code> compiler which takes <code>ts</code> files and compiles it to js </li>
  </ul></li>
  <li>What is the best way to minify/obfuscate the js files
  
  <ul>
  <li>I know a way using <code>outDir</code>  and <code>outFile</code> with <code>grump</code> but I don't want every files tobe included in one minified file because it kills the concept of lazy loading</li>
  <li>Is there a way to minify and obfuscate js files on compile time only?</li>
  </ul></li>
  <li>What <code>enableProdMode()</code> do? How it is different than not using it?</li>
  </ol>