项目作者: taosin

项目描述 :
吾❤️有猛🐯,细嗅🌺
高级语言: JavaScript
项目地址: git://github.com/taosin/alioss-uploader-plugin.git
创建时间: 2018-11-30T09:15:03Z
项目社区:https://github.com/taosin/alioss-uploader-plugin

开源协议:

下载


alioss-uploader-plugin

可将静态资源上传到阿里云OSS上的插件

Install

  1. $ npm install alioss-uploader-plugin --save-dev

Useage

  1. var AliOSSUploaderPlugin = require('alioss-uploader-plugin')
  2. new AliOSSUploaderPlugin(
  3. {
  4. buildPath: "your buildPath",
  5. region: "oss-cn-region",
  6. accessKeyId: "your accessKeyId",
  7. accessKeySecret: "your accessKeySecret",
  8. bucket: "your bucket",
  9. deleteAll: true,
  10. generateObjectPath: function (filename) {
  11. return filename;
  12. },
  13. },
  14. []
  15. ).upload();