Skip to content

Instantly share code, notes, and snippets.

@petyosi
Created February 9, 2018 14:43
Show Gist options
  • Save petyosi/e0814f40572095dd359205b9f067e0b1 to your computer and use it in GitHub Desktop.
Save petyosi/e0814f40572095dd359205b9f067e0b1 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist/'),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
presets: ['es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment