Open gongxiancao opened 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); });
@gongxiancao 我也遇到这个问题,fork 了一份修复了下:https://github.com/nighca/gulp-qiniu
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); });