chore(bundles): don't distribute sfx bundles for http
Currently the main sfx bundle already contains http and router and the http sfx bundles duplicates all core. Additionally https://github.com/angular/angular/issues/5223 modifies our strategy for individual bundles Closes #5434
This commit is contained in:
parent
b90de66535
commit
8c670822ce
15
gulpfile.js
15
gulpfile.js
|
@ -1003,12 +1003,7 @@ gulp.task('!bundle.js.sfx.dev', ['build.js.dev'], function() {
|
||||||
devBundleConfig.paths = merge(true, devBundleConfig.paths, {'*': 'dist/js/dev/es5/*.js'});
|
devBundleConfig.paths = merge(true, devBundleConfig.paths, {'*': 'dist/js/dev/es5/*.js'});
|
||||||
return bundler.bundle(devBundleConfig, 'angular2/angular2_sfx',
|
return bundler.bundle(devBundleConfig, 'angular2/angular2_sfx',
|
||||||
'./dist/build/angular2.sfx.dev.js', {sourceMaps: true},
|
'./dist/build/angular2.sfx.dev.js', {sourceMaps: true},
|
||||||
/* self-executing */ true)
|
/* self-executing */ true);
|
||||||
.then(function() {
|
|
||||||
return bundler.bundle(devBundleConfig, 'angular2/http', './dist/build/http.sfx.dev.js',
|
|
||||||
{sourceMaps: true},
|
|
||||||
/* self-executing */ true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('!bundles.js.umd', ['build.js.dev'], function() {
|
gulp.task('!bundles.js.umd', ['build.js.dev'], function() {
|
||||||
|
@ -1111,11 +1106,9 @@ gulp.task('!bundle.js.dev.deps', ['!bundle.js.dev'], function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('!bundle.js.sfx.dev.deps', ['!bundle.js.sfx.dev'], function() {
|
gulp.task('!bundle.js.sfx.dev.deps', ['!bundle.js.sfx.dev'], function() {
|
||||||
return merge2(
|
return bundler.modify(JS_DEV_DEPS.concat(['dist/build/angular2.sfx.dev.js']),
|
||||||
bundler.modify(JS_DEV_DEPS.concat(['dist/build/angular2.sfx.dev.js']), 'angular2.sfx.dev.js')
|
'angular2.sfx.dev.js')
|
||||||
.pipe(gulp.dest('dist/js/bundle')),
|
.pipe(gulp.dest('dist/js/bundle'));
|
||||||
bundler.modify(['dist/build/http.sfx.dev.js'], 'http.sfx.dev.js')
|
|
||||||
.pipe(gulp.dest('dist/js/bundle')));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('!bundle.web_worker.js.dev.deps', ['!bundle.web_worker.js.dev'], function() {
|
gulp.task('!bundle.web_worker.js.dev.deps', ['!bundle.web_worker.js.dev'], function() {
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import * as ngHttp from './http';
|
|
||||||
|
|
||||||
(<any>window).ngHttp = ngHttp;
|
|
Loading…
Reference in New Issue