Skip to content

Instantly share code, notes, and snippets.

@cacheflow
Created February 18, 2016 23:54
Show Gist options
  • Save cacheflow/6f74217c55a869498c27 to your computer and use it in GitHub Desktop.
Save cacheflow/6f74217c55a869498c27 to your computer and use it in GitHub Desktop.
module.exports = {
entry: "./public/main.js",
output: {
filename: "public/bundle.js"
},
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment