-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Shared content base for multiple compiler instances #1283
Comments
It is potential unsafe, that is why it was changed, you can have the same URL for different files here, why you need it? |
As in my demo repository, the output is in two separate subfolders ( Dev server here is a reflection of the output of the normal build, does not need any additional validations |
In theory we can implement overriding |
How is this more unsafe than the webpack build output, which produces the same files on the disk? Does it print a warning when overwriting a file from another compiler? In any way, would you accept a PR adding |
The main problem here is the same URLs, you can potential create situation when the same URL returns different content, but if you use different directories (like in your example) you should not have these problems
It is not related to |
les't close in favor #979, we want to move |
Modification Proposal
We have the following webpack config:
Webpack 4 handles such config perfectly allowing to see both themes on a single server via (
/foo/main
and/bar/main
). With webpack 5 it no longer works (there is a single theme at/main
).This happened because of changes in
getPaths
implementation. Previously it allowed loose path matches.Expected Behavior / Situation
There is a configuration option to set the base path for all entry points, so files will be resolved properly against each compiler
Actual Behavior / Situation
Currently there is no way to serve multiple compilations from a single server.
I created a demo project to with minimal scenario for this issue: https://github.com/just-boris/webpack-multi-entries/tree/webpack-5
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: