需要在pages.json里面添加"workers": "workers",
manifest.json里面添加 "workers": "workers",
配置好之后把dist删除,多打包几次
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : true,
"es6" : true,
"minified" : true,
"postcss" : true
},
"optimization" : {
"subPackages" : true
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "您的位置将用于获取当前城市的商品"
}
},
"requiredPrivateInfos" : [ "chooseAddress", "chooseLocation", "choosePoi", "getLocation" ],
// "lazyCodeLoading": "requiredComponents"
"workers": "workers"
},
3 个回复
z***@outlook.com
需要在pages.json里面添加"workers": "workers",
manifest.json里面添加 "workers": "workers",
配置好之后把dist删除,多打包几次
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : true,
"es6" : true,
"minified" : true,
"postcss" : true
},
"optimization" : {
"subPackages" : true
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "您的位置将用于获取当前城市的商品"
}
},
"requiredPrivateInfos" : [ "chooseAddress", "chooseLocation", "choosePoi", "getLocation" ],
// "lazyCodeLoading": "requiredComponents"
"workers": "workers"
},
a***@163.com (作者)
为啥没人回复
1***@qq.com
2024了,我也遇到这个问题了,不知道怎么搞啊