-
Notifications
You must be signed in to change notification settings - Fork 595
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
没有编译的老旧项目加载会出问题 #11
Comments
1、对于js沙箱,子应用的 iframe 会设置 base 标签,所以在里面跑的script和接口请求相对都能够正确修正 如果确实还有问题,可以采用插件,其中html-loader、js-loader、css-loader可以将html、js和css在运行时做替换,比如正则匹配找出相对地址链接替换成绝对地址链接从而避免去改动子应用的代码 |
还有就是子应用的静态定位会出问题,定位到主应用里 |
这个方便给个复现demo吗?我这边没有复现到具体问题 |
@18610509683 这个问题框架也已经处理了,详见 #35 |
相对路径会访问主应用服务器端的
The text was updated successfully, but these errors were encountered: