Files
ionic-framework/scripts/npm/bundle.webpack.config.js
Tim Lancina 99cb565312 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.
2015-12-10 16:39:56 -06:00

20 lines
421 B
JavaScript

module.exports = {
entry: [
"zone.js", // required for Angular change detection
"reflect-metadata", // required for Angular DI
"es6-shim/es6-shim.min.js",
"web-animations.min",
"./dist/ionic.js"
],
output: {
path: 'dist/bundles',
filename: 'ionic.bundle.js',
libraryTarget: 'umd'
},
resolve: {
alias: {
'web-animations.min': './dist/js/web-animations.min'
}
}
};