mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(demos): update demo scripts
This commit is contained in:

committed by
Adam Bradley

parent
1b65f2d040
commit
4260940814
@ -1,38 +1,18 @@
|
||||
var entryData = require('./webpackEntryPoints.json');
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
entry: [
|
||||
path.normalize('es6-shim/es6-shim.min'),
|
||||
'reflect-metadata',
|
||||
path.normalize('zone.js/dist/zone'),
|
||||
],
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loader: "awesome-typescript-loader",
|
||||
query: {
|
||||
'doTypeCheck': false
|
||||
},
|
||||
include: /\/demos\//,
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
include: path.resolve('node_modules/angular2'),
|
||||
loader: 'strip-sourcemap'
|
||||
}
|
||||
],
|
||||
noParse: [
|
||||
/es6-shim/,
|
||||
/reflect-metadata/,
|
||||
/zone\.js(\/|\\)dist(\/|\\)zone-microtask/
|
||||
]
|
||||
devtool: "source-map",
|
||||
|
||||
entry: entryData,
|
||||
|
||||
output: {
|
||||
"path": path.join(__dirname, '../../'),
|
||||
"filename": "[name].js"
|
||||
},
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'ionic-angular': path.normalize(process.cwd() + '/dist')
|
||||
},
|
||||
extensions: ["", ".js", ".ts"]
|
||||
extensions: ["", ".js", ".json"],
|
||||
mainFields: ["main", "browser"]
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user