@syyfe/webpack-plugin-minio
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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));

Readme

Keywords

none

Package Sidebar

Install

npm i @syyfe/webpack-plugin-minio

Weekly Downloads

3

Version

0.0.1

License

ISC

Unpacked Size

23.4 kB

Total Files

5

Last publish

Collaborators

  • henry.zhou