Skip to content

Instantly share code, notes, and snippets.

@ArunMichaelDsouza
Created October 27, 2016 16:51
Show Gist options
  • Save ArunMichaelDsouza/819474559f9ec249db66ea65ba2648f6 to your computer and use it in GitHub Desktop.
Save ArunMichaelDsouza/819474559f9ec249db66ea65ba2648f6 to your computer and use it in GitHub Desktop.
ES6 + JSX Webpack module bundling build script
module.exports = {
entry: './js/src/app.js',
output: {
filename: './js/build/bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment