Skip to content

Instantly share code, notes, and snippets.

@prateekbh
Created November 2, 2016 11:30
Show Gist options
  • Save prateekbh/c6246a862f1d204fc75226e74e1f8ef6 to your computer and use it in GitHub Desktop.
Save prateekbh/c6246a862f1d204fc75226e74e1f8ef6 to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
module.exports = {
entry: './index',
output: {
path: __dirname + '/public',
publicPath: '/public/',
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: { presets: ['es2015'] }
},
{
test: /\.tag$/,
loader: 'tag'
}
]
},
devServer: {
contentBase: '/public'
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment