mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00

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.
17 lines
273 B
JavaScript
17 lines
273 B
JavaScript
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'
|
|
]
|
|
};
|