Skip to content

afeichuanqi/webpack-build-upload-oss-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#安装

npm install webpack-build-upload-alioss-plugin -D
yarn add webpack-build-upload-alioss-plugin -D

webpack-build-upload-alioss-plugin

作用:将打包后的文件上传到阿里云oss上

  1. 会自动在项目下搜索uploadOss.config.json文件

  2. 也支持在 new plugin(config) 填入

  3. The upload Oss.config.json file will be automatically searched under the project

  4. Also supports filling in new plugin(config)

uploadOss.config.json

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 是否开启
}

Hope you have a good time

About

将构建后的文件上传到阿里云oss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages