title: Angular 2 AoT compiler: no error but something is definitely wrong
body: <p>I've been banging my head at this for 3 days, trying to get Ahead-of-Time compilation of my <code>Angular 2 rc.6</code> application to work.</p>
  
  <p>The application compiles and runs just fine using Just-in-Time compilation.</p>
  
  <p>I have installed all dependencies, run <code>ngc</code> (the compiler), changed my <code>main.ts</code> to use <code>platformBrowser()</code>, and run <code>ngc</code> again.</p>
  
  <p>There is no error in the console. The <code>.ngfactory.ts</code> files are generated. The <code>.js</code> files also. So far so good.  Here is my structure (it's a mess but I'll address that if I can ever get this working)</p>
  
  <p><a href="https://i.stack.imgur.com/KqPGV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KqPGV.png" alt="directory structure"></a></p>
  
  <p>The app runs out of <code>dist/</code>. Problem is, once I update <code>systemjs.config.js</code> and change <code>map['app']</code> from <code>dist</code> to <code>dist/dev</code> and run the App, things go downhill fast.</p>
  
  <p>The first indication that something is really wrong is that whereas I expected the number of HTTP requests and the amount of data to be drastically reduced with AoT, the opposite happened. I now have 200 more requests at bootstrap!  </p>
  
  <p>Secondly, even though there were no errors during compilation, the app will not run. I get a <code>404 not found</code> at the path: <code>http://localhost/traceur</code>.  What? Why is <code>traceur</code> involved? isn't that used for in-browser transpilation?  Where can I start looking for what's wrong?</p>