Skip to content

Instantly share code, notes, and snippets.

@asimpson
Last active Mar 23, 2017
Embed
What would you like to do?
var webpack = require('webpack');
module.exports = {
entry: [
'./components/Root.js'
],
output: {
path: __dirname,
filename: "app.js"
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment