0.0.1 • Published 1 year ago
@syyfe/webpack-plugin-minio v0.0.1
Webpack Minio 存储上传插件
介绍
项目打包产物上传到 Minio存储,适用于 webpack 项目项目。
参数
参数 | 类型 | 介绍 |
---|---|---|
endPoint | string | 对象存储服务的URL |
port | number | TCP/IP端口号 |
useSSL | boolean | 是否使用ssl |
SecretId | string | 密钥 id |
SecretKey | string | 密钥 |
Bucket | string | 桶名称 |
Region | string | 存储桶所在地域 |
bucketName | string | 桶下面的文件夹 |
remoteDir | string | 远程文件夹地址 |
from | string | 打包生成目录,dist |
excludesExtra | string[] | 需要过滤的后缀 "map" |
安装
npm i -D @syyfe/webpack-plugin-minio
使用
import CosPlugin from "@syyfe/webpack-plugin-minio";
const uploadOption = {
endPoint: "",
port: 9000,
useSSL: false,
SecretId: "",
SecretKey: "",
Region: "",
Bucket: "",
bucketName: "",
remoteDir: "",
from: "",
excludesExtra: ["map"]
};
config.plugins.push(new MiniocloudPlugin(uploadOption));
0.0.1
1 year ago