mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
wip
This commit is contained in:
40
webpack.config.js
Normal file
40
webpack.config.js
Normal file
@ -0,0 +1,40 @@
|
||||
var babelOptions = {
|
||||
optional: ['es7.decorators'],
|
||||
plugins: [
|
||||
'./transformers/disable-define',
|
||||
'angular2-annotations',
|
||||
'type-assertion:after'
|
||||
]
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
entry: "./ionic/ionic",
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: "ionic.bundle.js"
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.es6$/,
|
||||
loader: "babel-loader?" + JSON.stringify(babelOptions)
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
loader: "babel-loader?" + JSON.stringify(babelOptions)
|
||||
}
|
||||
]
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'angular2': 'angular2/es6/dev',
|
||||
'rtts_assert': 'rtts_assert/es6'
|
||||
},
|
||||
modulesDirectories: [
|
||||
'ionic2',
|
||||
'node_modules'
|
||||
],
|
||||
extensions: ['', '.js', '.es6']
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user