1.1.3 • Published 6 years ago

oss-upload-tools v1.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

阿里 oss 自动上传工具

如何使用

    npm install oss-upload-tools -D

然后在根目录下创建 oss.config.js 文件,填写 oss 相关信息

    module.exports = {
        region:  region,
        accessKeyId:  accessKeyId,
        accessKeySecret:  accessKeySecret,
        bucket: bucket,
        assetsPath: '/dist/assets',  // 需要上传的静态资源目录,相对于根目录
        remotePath: '/XXX/assets/'  // 需要上传的阿里 oss 远程目录,相对于 bucket 路径
    };

然后在构建完成后调用 node ./node_modules/oss-upload-tools

也可以加入到 package.json script中

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago