bundle demos with CJS

This commit is contained in:
Tim Lancina
2015-10-09 22:45:46 -05:00
parent 5f283cc045
commit aa816a9072
11 changed files with 100 additions and 35 deletions

View File

@ -0,0 +1,27 @@
module.exports = {
entry: [
"zone.js",
"reflect-metadata",
"angular2/angular2",
"ionic/ionic",
"web-animations.min",
],
module: {
loaders: [
{
test: /\.ts$/,
loader: "awesome-typescript-loader",
include: /\/demos\//,
exclude: /node_modules/
}
]
},
resolve: {
modulesDirectories: [
"node_modules",
"dist/src/es5/common", // ionic-framework npm package (stable)
"dist/js" // for web-animations polyfill
],
extensions: ["", ".js", ".ts"]
}
};