sindresorhus/electron-reloader

Support Hot Module Replacement (HMR)

開放

#1 建立於 2018年1月29日

 (0 則留言) (7 個反應) (0 位負責人)JavaScript (45 個分叉)user submission
enhancementhelp wanted

倉庫指標

星標
 (585 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南