Skip to content

Instantly share code, notes, and snippets.

@JBreit
Created May 12, 2017 02:39
Show Gist options
  • Save JBreit/7e9284646d0ef2b4c866f61fdaf35ad1 to your computer and use it in GitHub Desktop.
Save JBreit/7e9284646d0ef2b4c866f61fdaf35ad1 to your computer and use it in GitHub Desktop.
module.exports = {
entry: "./src/main.js",
output: {
filename: "./dist/bundle.js"
},
module: {
loaders: [{
test: [/\.js$/, /\.es6$/],
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['react', 'es2015']
}
}]
},
resolve: {
extensions: ['.js', '.es6']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment