Giter Club home page Giter Club logo

vite-plugin-zip-output's Introduction

vite-plugin-zip-output

一个压缩打包构建的文件为zip的插件。 插件会根据vite.config.jsbuild.outDir配置把打包输出的文件夹压缩为一个zip格式的压缩包

使用

import VitePluginZipOutput from 'vite-plugin-zip-output'

export default defineConfig({
  plugins: [VitePluginZipOutput()],
})

参数

参数 类型 必填 简介
zipName string × 压缩包的名称。默认为build.outDir的设置的文件夹名称。
isSend boolean × 压缩完成后是否以该压缩包为附件发送到邮箱。默认为false不发送。
user string × 发送者的qq邮箱。当isSend: true的时候必传
pass string × 发送者qq邮箱的授权码。当isSend: true的时候必传
to string × 接收者的qq邮箱。当isSend: true的时候且没有传值的时候, user所设置的邮箱即使发送者也是接收者

授权码

目前仅支持qq邮箱

QQ邮箱

在网页QQ邮箱端管理授权码

在邮箱帐号与安全点击 设备管理 > 授权码管理,对授权码进行管理。

在QQ邮箱APP端管理

在QQ邮箱App点击左上角头像 > 在我的帐户列表下点击帐号>安全管理>设备管理,对授权码进行管理。

vite-plugin-zip-output's People

Contributors

lipeiquan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.