wepy-plugin-aliyun-oss

wepy-plugin-aliyun-oss

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
wepy-plugin-aliyun-oss
321.2.105 years ago6 years agoMinified + gzip package size for wepy-plugin-aliyun-oss in KB

Readme

wepy-plugin-aliyun-oss
>A plugin for wepy is used to upload images to aliyun-oss

Install

yarn add wepy-plugin-aliyun-oss --dev

Usage

module.exports = {
  ...
  plugins: {
    'aliyun-oss': {
      oss: {
        accessKeyId: 'accessKeyId',
        accessKeySecret: 'accessKeySecret',
        bucket: 'xmpt-sit',
        endpoint: 'https://oss-cn-shenzhen.aliyuncs.com',
        region: 'oss-cn-shenzhen'
      },
      config: { debugMode: false, time: false },
    },
  },
  ...
}