eevee-uploader-qiniu

0.1.0 • Public • Published

Uploader Qiniu

eevee uploader 的一个对接七牛的实现

使用方法
new PublishWebpackPlugin({
   server: 'http://hhhhh.haimaiche.net/api',
   publicPath: 'https://img.maihaoche.com/mhc-fe/test',
   projectId: 2,
   uploaders: [
     new Uploader({
       host: "https://img.maihaoche.com",
       accessKey: "xxx",
       secretKey: "xxx",
       bucket: "maihaoche",
       basePath: "mhc_fe/test",
       glob: "./dist/static/**/*.*"
     })
   ]
 }),
API
字段名 说明 默认值
host 上传cdn后显示的域名, 用于回显, 必传
accessKey 七牛的accessKey
accessKey 七牛的accessKey
bucket 七牛信息 bucket
basePath 上传的key值的前缀
glob 描述需要上传的文件,字符串或者字符串的数组

Package Sidebar

Install

npm i eevee-uploader-qiniu

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

232 kB

Total Files

20

Last publish

Collaborators

  • guoshencheng