Skip to content

Instantly share code, notes, and snippets.

@binaryk
Created February 22, 2016 08:30
Show Gist options
  • Save binaryk/4d19e6f72a67d4babda2 to your computer and use it in GitHub Desktop.
Save binaryk/4d19e6f72a67d4babda2 to your computer and use it in GitHub Desktop.
module.exports = {
entry: "./app/components/Main.js",
output: {
filename: "public/bundle.js"
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['react', 'es2015']
}
}
]
}
}
@binaryk
Copy link
Author

binaryk commented Feb 22, 2016

npm install --save-dev babel-preset-react

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment