-
Notifications
You must be signed in to change notification settings - Fork 75
feat: add publicPath option #332
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this improvement @pcfreak30
- Add publicPath option to ModuleFederationOptions interface - Implement resolvePublicPath utility for consistent path resolution - Support explicit publicPath override, Vite base, and 'auto' fallback - Integrate with pluginMFManifest and pluginProxyRemoteEntry
6833b26
to
d4df41f
Compare
@gioboa this is ready. fixed the e2e tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's great to me @pcfreak30 👏
Can you please clarify? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it solving a specific issue?
since GitHub borked the comments, ill repeat: Can you please clarify? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we link and close any issues with this PR ?
No. I never made an issue for this. This was unique to my situation. |
I have an edge case use case where I need to have an empty base path for localhost development which would trigger the
auto
mode in the federation path lookup. However this causes a problem with vites base which if empty creases the html assets at./
not/
which breaks my app.So I need the ability to override and separate them, keeping MF publicPath auto, but changing the vite base for the HTML.