How to prepare release version with SystemJS and Gulp? How to prepare release version with SystemJS and Gulp? angular angular

How to prepare release version with SystemJS and Gulp?


You will get " Unexpected anonymous System.register call" because the references are not being loaded in the correct order. I use JSPM to properly build my angular app for production. There are 4 parts to the process.

Part 1: Compile your typescript files

var ts = require("gulp-typescript");var tsProject = ts.createProject("./App/tsconfig.json");gulp.task("compile:ts", function () {    var tsResult = tsProject.src()        .pipe(ts(tsProject));    tsResult.js.pipe(gulp.dest("./wwwroot/app"));});