-
Notifications
You must be signed in to change notification settings - Fork 90
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
静态资源路径替换问题 #78
Comments
收,下一个版本支持 |
经过测试:以下代码可以实现远程库替换功能,经钟工提醒使用MutationObserver,简略实现,分享出来,加到./index.js文件中即可,如图: |
该测试代码在实际项目中存在一些问题,请谨慎使用 |
我觉得我搞的有点花里胡哨了,现在改成在vue mounted里直接将资源replace掉了,暂时用一用,等官方大佬出版本 function replace (id, source, target) { |
能达成目的就是好方法 |
问题描述:打包时homePage指定为绝对路径,项目中使用IPreFetchLibOptions.hook.beforeAppendAssetNode 替换掉域名,然后发现图片无法显示,如图
期待效果:静态资源路径可以被替换
The text was updated successfully, but these errors were encountered: