Skip to content

Instantly share code, notes, and snippets.

@foxbunny
Created November 10, 2016 10:49
Show Gist options
  • Save foxbunny/f0488c6e307f3ad626f0cd2f8da8c346 to your computer and use it in GitHub Desktop.
Save foxbunny/f0488c6e307f3ad626f0cd2f8da8c346 to your computer and use it in GitHub Desktop.
var path = require('path')
module.exports = {
entry: './src/index.js',
output: {
path: './static',
publicPath: '/static/',
filename: 'app.js',
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules|conf)/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment