Closed Sawtaytoes closed 6 years ago
README has what you're looking for. https://github.com/webpack-contrib/webpack-hot-client#allentries. If that doesn't do it, please triage in your scenario and post a cause of the issue, and we'll reopen.
FWIW, this module has absolutely nothing to do with Express, so routing, etc wouldn't matter. This is a webpack configuration issue.
That's the solution. I must've not understood it before, but now that I have this issue, the description makes sense.
Might be better to say something like:
By default, webpack-hot-client only looks at the first entry. If you want all
entry
keys to be configured for the webpack compiler, set this setting andautoConfigure
totrue
.
Expected Behavior
Webpack-Hot-Client runs on all entrypoints on all routes.
Actual Behavior
Webpack-Hot-Client only runs on routes that reference back to
/
and not any other routes using differing entrypoints.Code
Webpack Entrypoint Configs
Client
Server
Express Config
HTML
/
/tests
How Do We Reproduce?
Setup a path in Express on
/
to run one entrypoint and set another path on/something
to run a different entrypoint. Only the entrypoint at/
will get Webpack-Hot-Client.