Comments (3)
I suppose we could be a section in there to explicitly address that. Well the important bits are at the top:
webpack-hot-client accomplishes this by creating a WebSocket server, providing the necessary client (browser) scripts that communicate via WebSockets, and automagically adding the necessary webpack plugins and config entries. All of that allows for a seamless integration of Hot Module Support.
And https://github.com/webpack-contrib/webpack-hot-client#browser-support.
webpack-hot-middleware
supports ancient browsers via a client/serve communication technique that has support going back to early IE, whereas this module uses WebSockets
. Our technique is faster and more flexible, but the browser support requires newer versions. Folks that have to support old browsers or browsers that haven't implemented WebSockets
won't be able to use this hot-client
. The other big different is that hot-middleware
is middleware and it requires a server that uses express-style middleware patterns. On the flip side, hot-client
is not middleware and can be run in tandem with any server kind. Thought that's kind of moot if using webpack-dev-middleware
, which is the most likely scenario.
The final difference comes from this line:
Reminder: You don't have to modify your config at all!
hot-middleware
requires users to modify their config to use it. Webpack as an org is trying to move away from making users do extra lifting, and hot-client
follows that mantra by automatically inserting plugins and entry scripts into a compilation for the user. It's a more seamless experience.
from webpack-hot-client.
Great answer, thanks!
While it might be smart to make some of these things clearer in the documentation I now think it's good enough to have this issue here as a form of documentation that can be referenced and found if someone has the same questions as I. π
Given that I will go ahead and close this issue, please reopen if you want to use it for tracking an intended change. π
from webpack-hot-client.
Thanks for raising a solid question. I'll update the README to point to this issue for that particular question.
from webpack-hot-client.
Related Issues (20)
- Bundled code includes `eval()`, requiring a relaxed CSP HOT 2
- `logLevel` is not honoured by client logger (?) HOT 2
- Option to set websocket path HOT 6
- How to delay auto reload? HOT 2
- Crash, invalid hook returns number as filePath HOT 1
- auto inject hotModuleReplacement of mini-css-extract-plugin HOT 1
- Webpack 5: Update ParserHelpers to JavascriptParserHelpers HOT 3
- Make it possible to share HTTP server (eg with koa)
- Add server/client configuration to port option (like with "host" option) HOT 14
- TypeError: Cannot read property 'beforeCompile' of undefined HOT 3
- Client port ignored HOT 2
- Duplicated βsingleβ runtime HOT 4
- Need to see a working example HOT 7
- Webpack-Hot-Client not working with entrypoints at different routes HOT 2
- Error when loading webpack-hot-client from a package that brings it in HOT 1
- reload is broken HOT 6
- hot doesn't work when you have two or more websocket clients HOT 11
- `warningsFilter` is not honoured HOT 8
- Entry as an object-of-arrays-of-strings does not work HOT 6
- Unable to run well with Docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-hot-client.