add hot reload support

Change-Id: I29cf167e3ec96ffa046d454863f4dbf0eebcd9f4
diff --git a/client/webpack.config.js b/client/webpack.config.js
index c02de06..6f02eac 100644
--- a/client/webpack.config.js
+++ b/client/webpack.config.js
@@ -1,13 +1,17 @@
 const path = require('path')
 const HtmlWebpackPlugin = require('html-webpack-plugin')
+const webpack = require('webpack')
 
 module.exports = {
-    entry: path.resolve(__dirname, 'src', 'index.js'),
+    entry: ['react-hot-loader/patch',
+        'webpack-hot-middleware/client',
+        path.resolve(__dirname, 'src', 'index.js')],
     output: {
         path: path.resolve(__dirname, 'dist'),
         filename: 'bundle.js',
         publicPath: '/'
     },
+    devtool: 'inline-source-map',
     mode: 'development',
     module: {
         rules: [
@@ -28,6 +32,7 @@
         ]
     },
     plugins: [
+        new webpack.HotModuleReplacementPlugin(),
         new HtmlWebpackPlugin({
             template: path.resolve(__dirname, 'src', 'index.ejs')
         })