gulp-upto-qiniu

1.0.7 • Public • Published

# gulp-qiniu-up

概述 Summary

该工具允许你在Gulp中上传文件至七牛对象存储。

This tool allow you upload your files to Qiniu OSS in gulp.

修复了原工具gulp-qn-upload的一个会造成路径错误的问题。

Fixed a bug in the original tool gulp-qn-upload that caused a path error.

用法 Usage

const qn = require('gulp-qiniu-up');
 
gulp.task('taskname', function(){
    return gulp.src('filePath')
        .pipe(qn({
            qiniu: {
                accessKey: '',
                secretKey: '',
                bucket: 'bucket-name',
                origin: 'bucket-domain',
                uploadURL: 'upload-zone-url',
            },
            prefix: 'your prefix',
            forceUpload: false
        }));
});

Readme

Keywords

Package Sidebar

Install

npm i gulp-upto-qiniu

Weekly Downloads

5

Version

1.0.7

License

MIT

Unpacked Size

6.38 kB

Total Files

6

Last publish

Collaborators

  • chenqianghua