Skip to content

Instantly share code, notes, and snippets.

@jonnymaceachern
Last active April 29, 2016 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnymaceachern/fabc57eccf73106b1330d89c48c15c8a to your computer and use it in GitHub Desktop.
Save jonnymaceachern/fabc57eccf73106b1330d89c48c15c8a to your computer and use it in GitHub Desktop.
Webpack Boilerplate Config
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'babel-polyfill',
'./src/main'
],
output: {
publicPath: '/',
filename: 'main.js'
},
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
include: path.join(__dirname, 'src'),
loader: 'babel-loader',
query: {
presets: ["es2015"],
}
}
]
},
debug: true
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment