We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
globalAssets
global
externals
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请问microApp提供的资源共享的两种方式
globalAssets
、global
属性,是基于浏览器缓存实现的吗。文档内的公共缓存指的是浏览器缓存吗。目前项目是使用webpack在index.html内通过CDN加载静态资源,所以想在子应用复用主应用的资源,同时在子应用加载时拼接上主应用传递的时间戳,
遇到的问题是:子应用加载CDN前需要拿到主应用传递的时间戳并拼接,在这之前webpack做了一个
externals
的排包动作,但是在这个时间是没有完成CDN加载的,会找不到需要排的这个包。不考虑子应用复用的情况,主应用使用globalAssets方法,globalAssets触发的CDN资源没有加载之前,webpack如果配置externals,也会有一样的问题
请问有方案可以实现globalAssets在webpack排包之前加载吗
The text was updated successfully, but these errors were encountered: