0.1.0 • Published 6 years ago

eevee-uploader-qiniu v0.1.0

Weekly downloads
5
License
MIT
Repository
-
Last release
6 years ago

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描述需要上传的文件,字符串或者字符串的数组