Skip to content

Instantly share code, notes, and snippets.

@andrewjmead
Created February 21, 2016 15:18
Show Gist options
  • Select an option

  • Save andrewjmead/51ef4553798a0f1bcceb to your computer and use it in GitHub Desktop.

Select an option

Save andrewjmead/51ef4553798a0f1bcceb to your computer and use it in GitHub Desktop.
Marcus ES6 & JSX Webpack
module.exports = {
entry: './public/index.js',
output: {
path: __dirname,
filename: './public/bundle.js'
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [
{
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
},
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment