Skip to content

Commit 2f0fef8

Browse files
committed
chore(router): add router bundle to gulpfile
1 parent 259f872 commit 2f0fef8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gulpfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,21 @@ gulp.task('bundle.js.dev', ['build.js.dev'], function() {
616616
{ sourceMaps: true });
617617
});
618618

619+
// TODO: remove redundancies with router and angular bundles
620+
// development router build
621+
gulp.task('router.bundle.js.dev', ['build.js.dev'], function() {
622+
var devBundleConfig = merge(true, bundleConfig);
623+
devBundleConfig.paths =
624+
merge(true, devBundleConfig.paths, {
625+
"*": "dist/js/dev/es6/*.es6"
626+
});
627+
return bundler.bundle(
628+
devBundleConfig,
629+
'angular2/router',
630+
'./dist/build/router.dev.js',
631+
{ sourceMaps: true });
632+
});
633+
619634
// self-executing development build
620635
// This bundle executes its main module - angular2_sfx, when loaded, without
621636
// a corresponding System.import call. It is aimed at ES5 developers that do not

0 commit comments

Comments
 (0)