title: Angular 2 with CLI - build for production
body: <p>I have freshly installed angular-cli 1.0.0.beta.17 (latest one), start new project, able to serve project on port 4200 with no problems - just standard "app works!" message.</p>
  
  <p>However when I try to build for production this empty and generic application by using command <code>ng build --prod</code> I do not have main.*.js file created at all and have a few screens of warnings like:</p>
  
  <ul>
  <li>Dropping unused function...</li>
  <li>Site effects in initialization...</li>
  <li>etc</li>
  </ul>
  
  <p>This is a brand new empty project - I did not have a chance to break anything yet...</p>
  
  <p>How to build production version ?</p>