上传静态资源到七牛 CDN
npm install gulp-qiniu --save-dev
实例代码:
gulp.src('./public/**')
.pipe(qiniu({
accessKey: "xxxx",
secretKey: "xxxx",
bucket: "bucket",
private: false
}, {
dir: 'assets/',
versioning: true,
versionFile: './cdn.json',
concurrent: 10
}))
MIT