Skip to content

Instantly share code, notes, and snippets.

@marclerodrigues
Last active December 31, 2016 18:34
Show Gist options
  • Save marclerodrigues/0b8e79f518cfe0a6e9ea0ae9fd5c8542 to your computer and use it in GitHub Desktop.
Save marclerodrigues/0b8e79f518cfe0a6e9ea0ae9fd5c8542 to your computer and use it in GitHub Desktop.
Webpack config
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './assets/application.js',
output: { path: __dirname, filename: 'bundle.js' },
module: {
loaders: [
{
test: /.jsx?$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015', 'react']
}
}
]
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment