How configure cache-busting hash names for federated bundles and NOT the manifest.js? #2385
Closed
JasonKleban
started this conversation in
General
Replies: 4 comments 1 reply
-
These questions remain for me when trying v2.2.2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Partially related regarding ignoring the main entry: webpack/webpack#16445 |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, I think I solved this for my situation. Sharing what I learned here:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
use a runtime plugin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Although I already have federated modules basically working, I'm struggling with my production-ish hardening configuration. I've read all the docs on these topics I can find, but it hasn't clicked for me yet.
I want an output folder like this:
where manifest.js is the stable name well-known by consuming applications in their own
remotes
configuration. The manifest is not meant to be cached for very long and can be checked for updates by consumers regularly. The "bundle" files are the bulk of the code which are considered immutable and can be cached by consumers/intermediaries forever. The manifest file will always contain the current full contenthashed "bundle" file names.Perhaps I'm misunderstanding the intended output? But I'm unable to exactly achieve the effect.
Confusions:
Can someone who knows please comment on a few of these so I can clear up my understanding?
Beta Was this translation helpful? Give feedback.
All reactions