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"
}
]
}
};