chore(bundles): don't duplicate reflect-metadata in http bundle
Since HTTP can't be used on its own there is no reason for duplicating reflect-metadata in the http bundle
This commit is contained in:
parent
2f047887d3
commit
bff9dc26c7
13
gulpfile.js
13
gulpfile.js
|
@ -1067,19 +1067,16 @@ gulp.task('!bundle.js.sfx.dev', ['build.js.dev'], function() {
|
|||
gulp.task('!bundle.js.prod.deps', ['!bundle.js.prod'], function() {
|
||||
return merge2(
|
||||
addDevDependencies('angular2.min.js'),
|
||||
bundler.modify(
|
||||
['node_modules/reflect-metadata/Reflect.js', 'dist/build/http.js'],
|
||||
'http.js'
|
||||
)).pipe(gulp.dest('dist/js/bundle'));
|
||||
bundler.modify(['dist/build/http.js'], 'http.js')
|
||||
)
|
||||
.pipe(gulp.dest('dist/js/bundle'));
|
||||
});
|
||||
|
||||
gulp.task('!bundle.js.min.deps', ['!bundle.js.min'], function() {
|
||||
return merge2(
|
||||
addDevDependencies('angular2.min.js'),
|
||||
bundler.modify(
|
||||
['node_modules/reflect-metadata/Reflect.js', 'dist/build/http.min.js'],
|
||||
'http.min.js'
|
||||
))
|
||||
bundler.modify(['dist/build/http.min.js'], 'http.min.js')
|
||||
)
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest('dist/js/bundle'));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue