add hot reload support
Change-Id: I29cf167e3ec96ffa046d454863f4dbf0eebcd9f4
diff --git a/app.js b/app.js
index 065724b..f429b22 100644
--- a/app.js
+++ b/app.js
@@ -22,11 +22,20 @@
const JamiRestApi = require('./routes/jami')
const JamiDaemon = require('./JamiDaemon')
+const webpack = require('webpack')
+const webpackConfig = require('./client/webpack.config.js')
+const compiler = webpack(webpackConfig)
+
//const sessionStore = new RedisStore({ client: redis })
const sessionStore = new session.MemoryStore()
const app = express()
-
+app.use(
+ require('webpack-dev-middleware')(compiler, {
+ publicPath: webpackConfig.output.publicPath
+ })
+ );
+ app.use(require('webpack-hot-middleware')(compiler));
/*
Configuation for Passeport Js
*/