bundle gulp task

Use webpack to create two UMD bundles - one of just ionic that
expects Angular2 to be an external module, the other that includes
zone.js, reflect-metadata, and angular2 as well.
This commit is contained in:
Tim Lancina
2015-12-04 15:06:48 -06:00
parent ffcdb2ebcd
commit 99cb565312
3 changed files with 71 additions and 45 deletions

View File

@ -0,0 +1,16 @@
module.exports = {
entry: [
"es6-shim/es6-shim.min.js",
"./dist/ionic.js"
],
output: {
path: 'dist/bundles',
filename: 'ionic.js',
libraryTarget: 'umd'
},
externals: [
'angular2/angular2',
'angular2/router',
'angular2/http'
]
};