分包打包后 无法加载资源 #18782
Unanswered
Misaka19327
asked this question in
Q & A
分包打包后 无法加载资源
#18782
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我的场景是这样:taro项目整体在编译为小程序时,我希望它是整体作为一个分包嵌入已有小程序,因此我使用
taro build --type weapp --new-blended;但在编译为h5时,我希望它自身作为一个主包进行服务。现在的问题是,由于场景不同导致的主包/分包不同,对应的资源/页面路径都不同,这个是否有好方法能够解决?页面路径我能封装一下按环境加前缀,但是静态资源不太行,因此会出现报错:
Beta Was this translation helpful? Give feedback.
All reactions