Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created October 20, 2017 15:41
Show Gist options
  • Save tkssharma/edd895ddbb7322def5bda30672093cbd to your computer and use it in GitHub Desktop.
Save tkssharma/edd895ddbb7322def5bda30672093cbd to your computer and use it in GitHub Desktop.
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: './js/main.js',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'main.bundle.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},
stats: {
colors: true
},
devtool: 'source-map'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment