vite-plugin-build-zip
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

vite-plugin-build-zip

这是一个可以自动压缩打包之后的dist文件的插件

安装

npm i vite-plugin-build-zip -D
yarn add vite-plugin-build-zip -D

zipBuildPlugin

zipBuildPlugin({ outputPath, zipName})

outputPath 代表打包输出的路径,默认值为build.outDir值,一般为dist zipName 压缩的名称 默认为package.json的name值 withoutMainFolder 压缩后的文件是否去除外层文件夹 默认为false

使用方法

import zipBuildPlugin from 'vite-plugin-build-zip'

// vite.config.ts | vite.confing.js

export default defineConfig({
  plugins: [
    zipBuildPlugin()
  ]
})

Readme

Keywords

none

Package Sidebar

Install

npm i vite-plugin-build-zip

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

7.51 kB

Total Files

8

Last publish

Collaborators

  • zhan-hc