Skip to content

Instantly share code, notes, and snippets.

@mariorcardoso
Created March 3, 2017 11:03
Show Gist options
  • Save mariorcardoso/ca0d510a65b28214256ce28d9aa378d1 to your computer and use it in GitHub Desktop.
Save mariorcardoso/ca0d510a65b28214256ce28d9aa378d1 to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'babel-polyfill',
'./app-js/main',
],
output: {
path: __dirname + '/app/assets/javascripts',
filename: 'app-js.js'
},
module: {
loaders: [
{
include: path.join(__dirname, 'app-js'),
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment