Skip to content

Instantly share code, notes, and snippets.

@stevenwanderski
Created December 29, 2015 21:15
Show Gist options
  • Save stevenwanderski/67aa613633f76210b78d to your computer and use it in GitHub Desktop.
Save stevenwanderski/67aa613633f76210b78d to your computer and use it in GitHub Desktop.
module.exports = {
entry: "./src/app.js",
output: {
filename: "public/bundle.js"
},
resolve: {
extensions: ['', '.js', '.jsx', '.css']
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['react', 'es2015']
}
},
{ test: /\.css$/, loader: "style-loader!css-loader" }
]
},
devtool: 'source-map',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment