chore(router): add router bundle to gulpfile
This commit is contained in:
parent
259f872cea
commit
2f0fef8ee1
15
gulpfile.js
15
gulpfile.js
|
@ -616,6 +616,21 @@ gulp.task('bundle.js.dev', ['build.js.dev'], function() {
|
||||||
{ sourceMaps: true });
|
{ sourceMaps: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO: remove redundancies with router and angular bundles
|
||||||
|
// development router build
|
||||||
|
gulp.task('router.bundle.js.dev', ['build.js.dev'], function() {
|
||||||
|
var devBundleConfig = merge(true, bundleConfig);
|
||||||
|
devBundleConfig.paths =
|
||||||
|
merge(true, devBundleConfig.paths, {
|
||||||
|
"*": "dist/js/dev/es6/*.es6"
|
||||||
|
});
|
||||||
|
return bundler.bundle(
|
||||||
|
devBundleConfig,
|
||||||
|
'angular2/router',
|
||||||
|
'./dist/build/router.dev.js',
|
||||||
|
{ sourceMaps: true });
|
||||||
|
});
|
||||||
|
|
||||||
// self-executing development build
|
// self-executing development build
|
||||||
// This bundle executes its main module - angular2_sfx, when loaded, without
|
// This bundle executes its main module - angular2_sfx, when loaded, without
|
||||||
// a corresponding System.import call. It is aimed at ES5 developers that do not
|
// a corresponding System.import call. It is aimed at ES5 developers that do not
|
||||||
|
|
Loading…
Reference in New Issue