Live Reloading and HMR do not work when setting target node-webkit

  • Operating System: Linux

  • Node Version: 10.15.3

  • NPM Version: 6.41

  • Yarn Version: 1.16.0

  • webpack Version: 4.34.0

  • webpack-dev-server Version: 3.7.1

  • This is a bug

  • This is a modification request

Code

Full test (for Live reloading, not HMR) is attached as a zip. Nothing else needed, this example installs NW as a dependency so it will run out of the box.

webpacknwtest.zip

Expected Behavior

Live Reloading and HMR should work when setting target "node-webkit".

Actual Behavior

Neither live reloading nor HMR do work-

For Bugs; How can we reproduce the behavior?

Unpack the example. It contains everything to run the example in browser and nwjs.
yarn install

For webbrowser example run
yarn startweb

Change something in src/index.js and reload happens.

For nwjs example run
yarn startnw

Change something in src/index.js and nothing happens. No reload. While my example does not show it, I know that it does not work with HMR either as I use it in a vue.js Application. The example was crafted just for the sake of this issue.