build-upload-oss-cli
v1.1.8
Published
基于阿里云oss快速上传webpack构建的工具
Downloads
4
Readme
安装
yarn add build-upload-oss-cli -D
npm install build-upload-oss-cli -D
-cli
作用:将打包后的文件上传到阿里云oss上
会自动在项目下搜索uploadOss.config.json文件
The upload Oss.config.json file will be automatically searched under the project
Also supports filling in new plugin(config)
uploadOss.config.js
"region": "",
"accessKeyId": "",
"accessKeySecret": "",
"bucket": "",
以上是oss上传必备
The above is necessary for oss upload
"bucketPath": "/build", 上传到阿里云哪个文件夹 **Which folder to upload to Alibaba Cloud**
"enable": true 是否开启,
"buildPath": ""本地build文件夹
}
use
- build-upload-oss upload 开始上传
- build-upload-oss info 查看本地和远程的文件路径
webpack-plugin
webpack-build-upload-alioss-plugin