added webpack-dev-middleware for recompiling on source changes

This commit is contained in:
Danny Coates
2017-08-09 19:22:20 -07:00
parent 314ab237ec
commit 21b7f16b1e
4 changed files with 63 additions and 14 deletions

View File

@@ -7,7 +7,8 @@ module.exports = {
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'public')
path: path.resolve(__dirname, 'public'),
publicPath: '/'
},
module: {
loaders: [