gulp-oss-upload
A gulp plugin for uploading static file to aliyun oss(by official ali-oss sdk).
上传文件到阿里云 OSS 的 gulp 插件.
install
npm install gulp-oss-upload --save-dev
usage
var gulp = ;var ossUpload = ; gulp;
This config will upload your current directory file app.js
to v1/app.js
in your bucket.
optional param
rootDir {string}
default: ''; //root directory
customObjectName {function}
/** * custom object name * * @param objectName * @param rootDir * @param fileRelative * * @return */{ return ''}
reference
-
功能完全正常, 满足了我的需求(感谢作者), 但使用过程中发现 OSS SDK 不是阿里云官方的 SDK.
objectDir
配置项也有点 bug, 因此自己参考着重写了一个.