最近使用uniapp在编译项目时提示:message:Error: 系统错误,错误码:80200,main package source size 2571KB exceed max limit ;
分包
步骤一:
步骤二:
步骤三:
在page.json中配置分包文件
"subPackages": [{
"root": "pageA",
"pages": [{
"path": "aroundStore/aroundStore",
"style": {
"navigationBarTitleText": "附近商家",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
]
}],
最后页面需要跳转到分包路径的话需要文件的绝对路径!!
如: ../../pageA/invitationRecord/invitationRecord