又拍云cdn上传
upyun_cdn(options, auth, [callback])
options:
src
glob patterndest
upload path
auth:
bucket
operator
password
callback: [可选]
- error
- result
upyun_cdn({
src: 'build/**/*.js',
dest: '/build'
}, {
bucket: 'upyun-text',
operator: 'test',
password: 'test'
}, function(err, result) {
if (err) {
console.error(err);
}
});