Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Hot Module Replacement (HMR) #1

Open
sindresorhus opened this issue Jan 29, 2018 · 0 comments
Open

Support Hot Module Replacement (HMR) #1

sindresorhus opened this issue Jan 29, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sindresorhus
Copy link
Owner

sindresorhus commented Jan 29, 2018

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

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Jan 29, 2018
@sindresorhus sindresorhus changed the title Support HMR Support Hot Module Replacement (HMR) Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant