mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
bundle demos with CJS
This commit is contained in:
27
scripts/demos/webpack.config.js
Normal file
27
scripts/demos/webpack.config.js
Normal 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"]
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user