gulp-up-qiniu-cdn
概述 Summary
因尝试使用现有工具包,部分工具包过老,使用中多多少少有各种各样的问题,此包诞生了。
Due to trying to use the existing toolkit, some of the toolkit is too old, use more or less a variety of problems, this package was born.
该工具允许你通过Gulp管道将文件上传到七牛云对象存储。
The tool allows you to upload files to the Qiniu Cloud object storage via Gulp pipes.
用法 Usage
const qn = require('gulp-up-qiniu-cdn')
gulp.task('taskname', function(){
return gulp.src('filePath').pipe(qn({
accessKey: '',
secretKey: '',
bucket: 'bucket-name',
origin: 'bucket-domain'
}, (file) => {
return 'folderPath/fileName.suffix'
}))
});