sindresorhus/electron-reloader

Support Hot Module Replacement (HMR)

Offen

#1 geöffnet am 29.01.2018

 (0 Kommentare) (7 Reaktionen) (0 zugewiesene Personen)JavaScript (45 Forks)user submission
enhancementhelp wanted

Repository-Metriken

Stars
 (585 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

https://webpack.js.org/concepts/hot-module-replacement/

Would be useful so people could totally replace their server (For example webpack-dev-server) with this module and electron-serve.

Since we have access to the window, I don't think we need all the websocket boilerplate, so we could just modify the page directly.

Some resources: https://github.com/glenjamin/webpack-hot-middleware/blob/master/process-update.js https://github.com/webpack/webpack-dev-server/blob/b0fa5f634e82ce942ac79f1b1371ef7f5afcdc81/client-src/live/index.js

Contributor Guide