hfcorriez / gulp-qiniu

Gulp plugin for deploying files to Qiniu CDN
MIT License
51 stars 17 forks source link

上传完成后gulp直接退出,不继续执行其他任务了 #10

Open gongxiancao opened 8 years ago

gongxiancao commented 8 years ago

nodejs 版本4.3.1, gulp: 3.9.1

貌似去掉源码里through2.obj的第二个参数就可以了,是我参数不对吗? var runSequence = require('run-sequence'); gulp.task('cdn', function (done) { return gulp.src(config.tmp.distAssets) .pipe(plugins.qiniu({ accessKey: config.qiniu.accessKey, secretKey: config.qiniu.secretKey, bucket: config.qiniu.bucket[environment], private: false }, { dir: 'console', versioning: false, concurrent: 10 })); }); gulp.task('build', function(cb) { runSequence( 'cdn', 'copy', cb); });

nighca commented 7 years ago

@gongxiancao 我也遇到这个问题,fork 了一份修复了下:https://github.com/nighca/gulp-qiniu