gulp-alioss-dd
v1.0.4
Published
Modify the add cache based on gulp-alioss
Downloads
4
Readme
gulp-oss
Aliyun Oss Client for Gulp
Install
npm install gulp-alioss-dd
DEMO
var gulp = require('gulp');
var oss = require('gulp-alioss-dd);
gulp.task('oss', function(){
var options = {
accessKeyId: '********',
secretAccessKey: '*********',
endpoint: 'http://oss-cn-***.aliyuncs.com',
apiVersion: '2017-10-15',
prefix: 'assets/js', //for no prefix: prefix: ''
bucket: 'test'
};
//./js/a.js -> <prefix>/a.js
// ......
//./js/b/a.js -> <prefix>/b/a.js
return gulp.src(['./js/**/*']).pipe(oss(options));
});
操作结果
cd /path/to/gulpfile.js/
gulp oss
[14:50:59] Using gulpfile ~/path/to/gulpfile.js
[14:50:59] Starting 'oss'...
[14:50:59] Finished 'oss' after *** ms
[14:50:59] OK: dist/a.js
[14:50:59] OK: dist/b/a.js
....