You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Is it possible to change the base URL of the chunks generated by Vite? I would like to be able to host all my assets and chunks in a cdn and let my entry files import them cross origin.
I have tried setting the base URL but that doesn't seem to be affecting the chunks, only the assets.
Also tried with the experimental renderBuiltUrl but it seems like the result is the same.
I assume an option would be to write a plugin that changes all of the relative imports after the bundles has been generated but wanted to see if there's a better option first.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! Is it possible to change the base URL of the chunks generated by Vite? I would like to be able to host all my assets and chunks in a cdn and let my entry files import them cross origin.
I have tried setting the base URL but that doesn't seem to be affecting the chunks, only the assets.
Also tried with the experimental renderBuiltUrl but it seems like the result is the same.
I assume an option would be to write a plugin that changes all of the relative imports after the bundles has been generated but wanted to see if there's a better option first.
Appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions