vue自动化部署阿里云oss打包上传
1.引入阿里云 webpack-aliyun-oss
yarn add webpack-aliyun-oss -D
2.根目录新建oss.config.js并配置如下
module.exports = {
region: '你的oss服务器区域',
accessKeyId: '你的accessKeyId',
accessKeySecret: '你的accessKeySecret',
bucket: '你的bucket'
}
3.vue.config.js中配置打包设
原创
2021-08-26 11:17:33 ·
1753 阅读 ·
0 评论