Skip to content

Instantly share code, notes, and snippets.

@chodorowicz
Created June 23, 2015 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chodorowicz/e8bbd0a10b669db5e730 to your computer and use it in GitHub Desktop.
Save chodorowicz/e8bbd0a10b669db5e730 to your computer and use it in GitHub Desktop.
webpack react babel config
module.exports = {
entry: [ __dirname + '/app/js/main.jsx'],
output: {
path: __dirname + '/web',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
}]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
devtool: "#inline-source-map",
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment