mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
@ -14,8 +14,9 @@
|
||||
<ion-app>
|
||||
<ion-loading-icon></ion-loading-icon>
|
||||
</ion-app>
|
||||
<script src="bundle.js"></script>
|
||||
|
||||
<script src="/js/ionic.bundle.js"></script>
|
||||
<!-- <script src="/js/ionic.bundle.js"></script>
|
||||
|
||||
<script>
|
||||
System.config({
|
||||
@ -27,7 +28,7 @@
|
||||
}
|
||||
})
|
||||
System.import("index");
|
||||
</script>
|
||||
</script> -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -14,7 +14,8 @@
|
||||
<ion-loading-icon></ion-loading-icon>
|
||||
</ion-app>
|
||||
|
||||
<script src="../../js/ionic.bundle.js"></script>
|
||||
<script src="bundle.js"></script>
|
||||
<!-- <script src="../../js/ionic.bundle.js"></script>
|
||||
|
||||
<script>
|
||||
System.config({
|
||||
@ -26,7 +27,7 @@
|
||||
}
|
||||
})
|
||||
System.import("index");
|
||||
</script>
|
||||
</script> -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
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