parent
ee07646059
commit
5fecb3b3f2
12
gulpfile.js
12
gulpfile.js
|
@ -977,11 +977,13 @@ gulp.task('!bundle.js.prod', ['build.js.prod'], function() {
|
||||||
sourceMaps: true
|
sourceMaps: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return bundler.bundle(bundleConfig, 'angular2/angular2', './dist/build/angular2.js', bundlerConfig)
|
||||||
|
.then(function(){
|
||||||
return q.all([
|
return q.all([
|
||||||
bundler.bundle(bundleConfig, 'angular2/angular2', './dist/build/angular2.js', bundlerConfig),
|
|
||||||
bundler.bundle(bundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.js', bundlerConfig),
|
bundler.bundle(bundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.js', bundlerConfig),
|
||||||
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/build/router.js', bundlerConfig)
|
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/build/router.js', bundlerConfig)
|
||||||
]);
|
]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// minified production build
|
// minified production build
|
||||||
|
@ -991,11 +993,13 @@ gulp.task('!bundle.js.min', ['build.js.prod'], function() {
|
||||||
minify: true
|
minify: true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
return bundler.bundle(bundleConfig, 'angular2/angular2', './dist/build/angular2.min.js', bundlerConfig)
|
||||||
|
.then(function(){
|
||||||
return q.all([
|
return q.all([
|
||||||
bundler.bundle(bundleConfig, 'angular2/angular2', './dist/build/angular2.min.js', bundlerConfig),
|
|
||||||
bundler.bundle(bundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.min.js', bundlerConfig),
|
bundler.bundle(bundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.min.js', bundlerConfig),
|
||||||
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/js/build/router.min.js', bundlerConfig)
|
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/js/build/router.min.js', bundlerConfig)
|
||||||
]);
|
]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// development build
|
// development build
|
||||||
|
@ -1009,11 +1013,13 @@ gulp.task('!bundle.js.dev', ['build.js.dev'], function() {
|
||||||
"*": "dist/js/dev/es5/*.js"
|
"*": "dist/js/dev/es5/*.js"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return bundler.bundle(devBundleConfig, 'angular2/angular2', './dist/build/angular2.dev.js', bundlerConfig)
|
||||||
|
.then(function(){
|
||||||
return q.all([
|
return q.all([
|
||||||
bundler.bundle(devBundleConfig, 'angular2/angular2', './dist/build/angular2.dev.js', bundlerConfig),
|
|
||||||
bundler.bundle(devBundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.dev.js', bundlerConfig),
|
bundler.bundle(devBundleConfig, 'angular2/http - angular2/angular2', './dist/build/http.dev.js', bundlerConfig),
|
||||||
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/build/router.dev.js', bundlerConfig)
|
bundler.bundle(bundleConfig, 'angular2/router - angular2/angular2', './dist/build/router.dev.js', bundlerConfig)
|
||||||
]);
|
]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// WebWorker build
|
// WebWorker build
|
||||||
|
|
Loading…
Reference in New Issue