Skip to content

Instantly share code, notes, and snippets.

@shams-ali
Created June 25, 2016 04:23
Show Gist options
  • Save shams-ali/e64eba1a76a85d6102edd0ed71984394 to your computer and use it in GitHub Desktop.
Save shams-ali/e64eba1a76a85d6102edd0ed71984394 to your computer and use it in GitHub Desktop.
webpack config es6
odule.exports = {
entry: './client.js',
output: {
filename: 'bundle.js'
},
devtool: 'source-map',
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'stage-2', 'react']
}
},
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment