What is the purpose of getTransformedHtml? #5602
Unanswered
Oleg-Arkhipov
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've read the docs and studied the SSR examples in rspack-contrib/rstack-examples.
I understand that I can use getTransformedHtml to have JS/CSS/preload/prefetch tags automatically included in my HTML template.
However, if I'm not mistaken, getTransformedHtml can only be used in development mode, as it requires instantiating a dev server.
So, for a production server I have to use another technique - namely reading manifest and including aforementioned tags myself. If I have to use it anyway, then I can just drop getTransformedHtml and apply manual way to a dev server too, just for the simplicity's sake, to not have extra difference, etc.
Do I miss something?
Beta Was this translation helpful? Give feedback.
All reactions