Skip to content

Instantly share code, notes, and snippets.

@awinogradov
Created July 3, 2016 09:24
Show Gist options
  • Save awinogradov/6c113f373c040e451df2966270f9c3b2 to your computer and use it in GitHub Desktop.
Save awinogradov/6c113f373c040e451df2966270f9c3b2 to your computer and use it in GitHub Desktop.
'use strict';
const path = require('path');
module.exports = {
entry: './index.js',
module: {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'babel',
query: {
presets: ['react', 'es2015']
}
}
]
},
devtool: 'source-map',
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
},
plugins: []
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment