- miniprogram-ci上传代码包怎么确认大小?
miniprogram-ci上传代码包之后怎么确认实际上传到开发者后台的代码包大小呢?ci.upload返回的数据 subPackageInfo: [ { name: '/packageA/', size: 80107 }, { name: '__APP__', size: 866002 }, { name: '__FULL__', size: 946109 } ], pluginInfo: [ { pluginProviderAppid: 'wx94a6522b1d640c3b', version: '1.2.7', size: 1794444 } ], 1. 那么实际上传到开发者后台的代码包大小是取'__FULL__'还是'__APP__'呢,插件的大小是否需要加上呢,最终上传的代码包的大小计算方式是什么呢? 2.为什么ci.upload,ci.preview,ci.getCompiledResult三种方式返回的subPackageInfo或者包大小信息不一致呢,应该以哪个API返回的包信息为准呢?
08-02 - 为什么ci.getCompiledResult如果参数带上settings就会报错?
问题详情: 1.ci.getCompiledResult获取上传到微信后台服务器时代码包里的文件内容,如果参数带上setting: { es6: true, minifyJS: true, minifyWXMLq: true, minifyWXSS: true, },就会报错,错误码10032.如果setting设为{}就不会报错。 2.为什么ci.getCompiledResult不传setting时(即未勾选上传时压缩JS,WXSS、WXML文件)打的包大小,甚至小于在IDE中手动上传代码 (勾选了上传时压缩JS,WXSS、WXML文件)的包大小。二者打包机制有什么区别呢,为什么会出现这种情况呢。 组件名称:ci.getCompiledResult 微信开发者工具版本号:stable 1.06.2402040 基础库:3.4.4 报错: 错误码10032 3 | * pinia v2.0.3 4 | * (c) 2021 Eduardo San Martin Morote 5 | * @license MIT at throwError (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\utils\common.js:2:1095) at m (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\handler\js.js:2:2611) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async compileJS (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\handler\js.js:2:2871) at async Promise.all (index 5) at async compileJSFiles (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\common.js:2:2708) at async compile (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\core\compile\mini_program.js:2:2151) at async Object.getCompiledResult (D:\mini\funPlaylet\funPlaylet\node_modules\miniprogram-ci\dist\ci\getCompiledResult.js:2:1089) at async getCompiledResult (D:\mini\funPlaylet\funPlaylet\deploy\wx\index.js:93:26) { code: 10032, path: 'common/vendor.js'
05-17