Automatically packaged into a zip archive and upload the Huawei wecode platform
npm i --save-dev zip-upload-huaweiType: String
Huawei wecode appid
Type: String
Default: build
The final zip name to be packaged, the default is "build", the final zip package name is "build.zip" or you enter the "zipname".zip
Type: String
huawei cloudlink workplace login name
Type: String
huawei cloudlink workplace login password
Type: Array
Exclude packaged file list
e.g: ["static"]
webpack.config.js
const ZipUploadHuaWei = require('zip-upload-huawei');
module.exports = {
plugins: [
new ZipUploadHuaWei({
appid: '123456789123456789',
zipname: '20190709',
username: 'MartinCui',
password: '123456',
excludeFile: ['static']
}),
]
}