Skip to content

Instantly share code, notes, and snippets.

@tlancina
Last active April 25, 2016 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tlancina/da759900e35dabee674d91fbcced1f2b to your computer and use it in GitHub Desktop.
Save tlancina/da759900e35dabee674d91fbcced1f2b to your computer and use it in GitHub Desktop.
A simple webpack config for JS Ionic 2 starters (not TypeScript)
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