Commit 71b167bf authored by Lukas Eipert's avatar Lukas Eipert

Respect webpack live reload setting

When we updated the webpack-dev-server, we just used
DEV_SERVER_LIVERELOAD to control hot module reloading. When in fact we
want to control "normal" live reloading as well.

Furthermore we can disable the websocket server that would be started
allTogether in order to save some resources.
parent 3bc7761a
......@@ -714,7 +714,14 @@ module.exports = {
},
host: DEV_SERVER_HOST || 'localhost',
port: DEV_SERVER_PORT || 3808,
// Setting up hot module reloading
// HMR works by setting up a websocket server and injecting
// a client script which connects to that server.
// The server will push messages to the client to reload parts
// of the JavaScript or reload the page if necessary
webSocketServer: DEV_SERVER_LIVERELOAD ? 'ws' : false,
hot: DEV_SERVER_LIVERELOAD,
liveReload: DEV_SERVER_LIVERELOAD,
// The following settings are mainly needed for HMR support in gitpod.
// Per default only local hosts are allowed, but here we could
// allow different hosts (e.g. ['.gitpod'], all of gitpod),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment