gulp-qiniu-cdn
v1.0.2
Published
gulp plugin for qiniu to upload file stream.
Downloads
3
Readme
gulp-qiniu-cdn
Gulp plugin for qiniu to upload file stream.
Install
Install with npm
npm install --save-dev gulp-qiniucdn
Usage
The following example will show the minimal usage with gulp-qiniu-cdn
var gulp = require('gulp'),
qiniuCDN = require('gulp-qiniu-cdn');
gulp.task('qiniu', function () {
return gulp.src(['app/**/*.css','app/**/*.js'])
.pipe(qiniuCDN({
AK: Your ACCESS_KEY,
SK: Your SECRET_KEY,
scope: bucketname
}))
});
Optional configurations are available.For more detail about configuation ,see offical document.
{
scope,
callbackUrl,
callbackBody,
returnUrl,
returnBody,
asyncOps,
endUser,
expires,
params,
mimeType,
crc32,
checkCrc
}
License
Copyright (c) 2015, Jogis. (MIT License)