How to bundle Angular 2 Typescript app using Gulp and SystemJS?

前端 未结 4 2096
庸人自扰
庸人自扰 2021-02-01 03:54

I\'m using Typescript with SystemJS for module loading and Gulp for task runner in my Angular 2 project. The current version of Angular in the project is RC2 but the problem is

4条回答
  •  遥遥无期
    2021-02-01 04:27

    I was trying to bundle for production using gulp and Angular 2.4 but all the examples had blocking issues; even git cloneing the working examples didn't work. I finally got it to work by using angular2-webpack-starter and copying my files there. It turns out the dependencies were easily manageable compared to using SystemJS where you have to add to system.config.js and hoping that dependencies followed the patterns SystemJS wants.

提交回复
热议问题