gulp-up-qiniu-cdn

1.0.3 • Public • Published

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'
  }))
});

Package Sidebar

Install

npm i gulp-up-qiniu-cdn

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.5 kB

Total Files

5

Last publish

Collaborators

  • mebell