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

路由单独拆分后如何合并的问题 #8

Open
WangHao1221 opened this issue Jun 9, 2022 · 2 comments
Open

路由单独拆分后如何合并的问题 #8

WangHao1221 opened this issue Jun 9, 2022 · 2 comments

Comments

@WangHao1221
Copy link

你好,有个问题请教一下,比如页面有20个路由,我设置了默认打包只打15个,另外5个单独打包(单独的没有入口所以无法独立运行),如果我在部署的时候另一个环境需要修改这五个路由里面的某处(全部打包太麻烦,所以修改具体地方,打包那五个路由模块即可),如何将两个打包后的文件组装起来了?因为生成后的哈希值不可控,默认没有那五个路由,打完之后需要手动去修改路由以及那五个模块,尝试了很多方案目前还没有解决

@Wonder73
Copy link

else 的情况怎么解决

@hzsrc
Copy link
Owner

hzsrc commented Jul 31, 2022

@WangHao1221 你这个问题似乎不是这个插件所涉及的问题范畴。两次打包都是独立在app,似乎很难合并使用,你可尝试导出全局变量,给另一个包引用试试

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

3 participants