eevee-uploader-qiniu
v0.1.0
Published
eevee 上传器 qiniu
Downloads
1
Maintainers
Readme
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|描述需要上传的文件,字符串或者字符串的数组||