Skip to content
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

使用加载微应用时,静态资源会从主应用寻找,不会获取微应用自己得静态资源 #745

Open
liuhui677 opened this issue Jun 26, 2024 · 2 comments

Comments

@liuhui677
Copy link

如下图,这张图片资源再单独运行微应用可以相应,但是主应用和微应用一起运行时,无法获取到正确的静态资源
image

@ClarkXia
Copy link
Collaborator

如果本地调试,可以设置 publicPath,线上发布理论上都会被替换成 cdn 地址的

@liuhui677
Copy link
Author

如果本地调试,可以设置 publicPath,线上发布理论上都会被替换成 cdn 地址的

打包后会被打包成base64,应该没问题,就是调试很烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants