Skip to content

Instantly share code, notes, and snippets.

@lastlegion
Last active August 9, 2016 12:32
Show Gist options
  • Save lastlegion/81c1f54be492c91b856f to your computer and use it in GitHub Desktop.
Save lastlegion/81c1f54be492c91b856f to your computer and use it in GitHub Desktop.
Minimal webpack config to get started with React and ES2015
module.exports = {
entry: "./public/javascripts/src/App.jsx", //entry point of your app
output: {
filename: "./public/javascripts/build/bundle.js" //output transpiled and compiled code
},
module: {
loaders:[
{
test: /\.js[x]?$/, //list of extensions
exclude: /node_modules/,
loader: "babel?presets[]=react&presets=es2015"
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment