title: How to concat & minify an angular2 application?
body: <p>I would like to concat &amp; minify an angular2 application. What I did was first concatenating all my *.js files (boot.js, application.js then all components) in one file and injected it to my index.html. I also deleted the </p>
  
  <pre><code>&lt;script&gt;
          System.config({
              packages: {
                  app: {
                      defaultExtension: 'js'
                  }
              }
          });
          System.import('app/boot')
              .then(null, console.error.bind(console));
      &lt;/script&gt;
  </code></pre>
  
  <p>and replaced it with my</p>
  
  <pre><code>&lt;script src="js/allMyConcatFilesIntoOne.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I got the error, that require is missing/unknown.</p>
  
  <p>How are angular2 applications filled into one file? Do I have to gather all typescript files first and then concat and then compile it via gulp?</p>
  
  <p>Regards</p>
  
  <p>Tenoda</p>