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.
20 lines
421 B
JavaScript
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'
|
|
}
|
|
}
|
|
};
|