#安装
npm install webpack-build-upload-alioss-plugin -D
yarn add webpack-build-upload-alioss-plugin -D
作用:将打包后的文件上传到阿里云oss上
-
会自动在项目下搜索uploadOss.config.json文件
-
也支持在 new plugin(config) 填入
-
The upload Oss.config.json file will be automatically searched under the project
-
Also supports filling in new plugin(config)
module.exports = {
region: "",
accessKeyId: "",
accessKeySecret: "",
bucket: "",
以上是oss上传必备
The above is necessary for oss upload
bucketPath: "/build", 上传到阿里云哪个文件夹 **Which folder to upload to Alibaba Cloud**
enable: true 是否开启
}