I want to start webSocket for every entry ( because in single ws link case, hmr works well in just only one entry and I cannot find the reason ).
\nWhat I want is like this:
\nI see what you want, current;y it is impossible for single configuration, you can use multi compiler (https://github.com/webpack/webpack/blob/main/examples/multi-compiler/README.md) mode with different uniqueName
https://webpack.js.org/configuration/output/#outputuniquename
-
I started a multi-entry webpack service. The example is as follows:
I want to start webSocket for every entry ( because in single ws link case, hmr works well in just only one entry and I cannot find the reason ). What I want is like this:
|
Beta Was this translation helpful? Give feedback.
-
Do you use |
Beta Was this translation helpful? Give feedback.
I see what you want, current;y it is impossible for single configuration, you can use multi compiler (https://github.com/webpack/webpack/blob/main/examples/multi-compiler/README.md) mode with different
uniqueName
https://webpack.js.org/configuration/output/#outputuniquename