Skip to content

Instantly share code, notes, and snippets.

@kvasdopil
Created February 20, 2016 09:07
Show Gist options
  • Save kvasdopil/c5be333b8ae849520201 to your computer and use it in GitHub Desktop.
Save kvasdopil/c5be333b8ae849520201 to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
module.exports = {
entry: [
'webpack-hot-middleware/client',
'./src/index.js'
],
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules|lib\.nodelibs/,
loader: 'babel',
}
]
},
output: {
path: './build',
publicPath: '/build',
filename: 'bundle.js'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment