@seer-bigdata/taro-plugin-upload-cdn-img
v0.0.2
Published
Taro 插件,用于在打包时,将图片上传到 minio 服务上,并返回图片的访问链接
Readme
@seer-bigdata/taro-plugin-upload-cdn-img
taro 插件,用于在项目构建完成后,将构建产物中的图片上传到 cdn 上
基本用法
export default defineConfig(() => {
return {
// 其他的配置项
plugins: [
[
'@seer-bigdata/taro-plugin-upload-cdn-img',
{
enabled: true,
tinyApiKey: 'your-tiny-api-key',
minioClientOptions: {
endPoint: 'minio.example.com',
port: 9000,
useSSL: true,
accessKey: 'your-access-key',
secretKey: 'your-secret-key',
},
bucket: 'mp-images',
onlyUoloadDirList: ['assets/images'],
},
],
],
};
});