-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Multi config webpack to use same template #1051
Comments
any updates? |
I'd also appreciate such a feature |
I don't know if a plugin instance can be shared but, discussing another approach, what if I'm not sure whether we'd get race conditions (e.g. can't open file for write) because from my tests multi-target compilation is async. I can't say if one waits the other to be finished but at minimum you cannot guarantee the order in which each compilation happens, when you tap into PS: Here are two example of working around the absence of this flag, tapping into
They also change |
Even though I do support adding such flag I should say I'm currently outputting to different files in each config and plan to use user agent sniffing at Nginx or backend to serve the safe version because the |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
I would love to have this feature, specially when I need to get asset files generated by array of configuration passed to webpack. |
Is there any progress? |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
If i have a multiple config webpack (https://webpack.js.org/configuration/configuration-types/#exporting-multiple-configurations), I'm looking for a way to be able to share a common template and inject all assets built by all configurations into the same template.
Currently, the template just gets overwritten.
Use case: I am trying to generate two separate bundles: modern and legacy (one gets loaded via
type="module"
other usesnomodule
attribute. I need to be able to run different babel configurations against these, so i need to use separate configs - but i want both assets to be included into the same templateThe text was updated successfully, but these errors were encountered: