大佬们,miniprogram-ci报主包超了,一直上传不了,但是开发者工具可以上传,要如何解决?
微信开发者版本 [图片] miniprogram-ci代码 const ci = require('miniprogram-ci')
// 注意: new ci.Project 调用时,请确保项目代码已经是完整的,避免编译过程出现找不到文件的报错。
const project = new ci.Project({
appid: 'wx1b2ad9043c4f4941',
type: 'miniProgram',
projectPath: './project',
privateKeyPath: './key/private.wx1b2ad9043c4f4941.key',
ignores: [],
})
ci.upload({
project,
version: '1.1.1',
desc: 'hello',
setting: {
es6: true,
minifyJS: true,
minifyWXML: true,
minifyWXSS: true,
minify: true,
autoPrefixWXSS: true,
},
allowIgnoreUnusedFiles: true,
onProgressUpdate: task => {
// console.log(task._msg, '上传状态: ', task._status)
},
}).then(res => {
console.log('res', res)
}).catch(err => {
console.log(err)
})
// 报错信息
// 20003 Error: {"errCode":-1,"errMsg":"inner upload fail with errcode: 80200, errmsg: main package source size 3087KB exceed max limit 2MB"}