Last active
April 25, 2016 15:47
-
-
Save tlancina/da759900e35dabee674d91fbcced1f2b to your computer and use it in GitHub Desktop.
A simple webpack config for JS Ionic 2 starters (not TypeScript)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
module.exports = { | |
entry: [ | |
path.resolve('app/app') | |
], | |
output: { | |
path: path.resolve('www/build/js'), | |
filename: 'app.bundle.js' | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
loader: 'babel', | |
query: { | |
presets: ['es2015'], | |
plugins: ['transform-decorators-legacy'] | |
}, | |
include: path.resolve('app'), | |
exclude: /node_modules/ | |
} | |
] | |
}, | |
resolve: { | |
root: ['app'], | |
alias: { | |
'angular2': path.resolve('node_modules/angular2') | |
}, | |
extensions: ['', '.js'] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment