shimo-gulp-oss-publish

1.0.4 • Public • Published

gulp-oss-publish

Publish files with oss

Install

npm install gulp-oss-publish

Use

import publish from 'gulp-oss-publish';

gulp.task('publish', ['build'], () => {
  return gulp
    .src('dist/**/*', {
      base: 'dist',
      buffer: true
    })
    .pipe(publish({
      prefix: 'a/puca-web',
      genShortId: true,
      oss: {
        accessKeyId: 'xxx',
        secretAccessKey: 'yyy',
        endpoint: 'http://oss-cn-hangzhou.aliyuncs.com',
        bucket: 'your-bucket-name'
      },
      headers: {
        CacheControl: 'no-cache',
        ServerSideEncryption: 'AES256'
      }
    }));
});

Readme

Keywords

Package Sidebar

Install

npm i shimo-gulp-oss-publish

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • luin