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

Try using webpack hmr api on server instead of webpack-hot-server-middleware #66

Closed
wants to merge 1 commit into from

Conversation

richardscarrott
Copy link
Member

@richardscarrott richardscarrott commented Oct 24, 2016

TODO:

  • Hook up client side assets.
  • Use in-memory compilation from webpack-dev-server (although actually it looks although 'webpack/hot/poll' is only capable of reading from the file system as it uses node require to fetch the hot update manifest and chunks).
  • Pass client stats to serverRenderer middleware.

Observations

  • Given this will need to require() the server bundle from the memory fs to perform the initial mount anyway it doesn't really seem worth going through the Webpack HMR api to switch the server renderer middleware to the latest compilation when it can just be switched on each compilation (i.e. exactly how webpack-hot-server-middleware does).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.039% when pulling 81a5863 on feature/hmr-webpack-api into 96afcf6 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants