Skip to content

Instantly share code, notes, and snippets.

@avioli
Created November 4, 2015 10:46
Show Gist options
  • Save avioli/a5ed73d82c7f5e5a27fb to your computer and use it in GitHub Desktop.
Save avioli/a5ed73d82c7f5e5a27fb to your computer and use it in GitHub Desktop.
var path = require('path')
var webpack = require('webpack')
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: [
'webpack-hot-middleware/client',
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [{
test: /\.js$/,
loaders: [ 'babel' ],
exclude: /node_modules/,
include: __dirname
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment