Qiniu DN gulp tasks.
npm install --save-dev gulp-react
var gulp = require('gulp');
var upload = require('gulp-qndn').upload;
var qnOptions = {
accessKey: 'your access key',
secretKey: 'your secret key',
bucket: 'your bucket name',
domain: 'http://xxxx.xxx.xx.glb.clouddn.com'
};
gulp.task('default', function () {
return gulp.src('template.jsx')
.pipe(upload({qn: qnOptions}))
.pipe(gulp.dest('dist'));
});
object
Qinniu DN config, see qn docs.
string
file path prefix, default ''
.
bool
, flatten file path or not, default false
.