# vite-plugin-zip

> zip files

Latest version **1.0.1** (published 2021-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install vite-plugin-zip
pnpm add vite-plugin-zip
yarn add vite-plugin-zip
bun add vite-plugin-zip
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-17 |
| First published | 2021-11-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | liufei |
| Maintainers | liufeifeiholy |
| Keywords | vite, zip, vite-plugin |

## Links

- npm: https://www.npmjs.com/package/vite-plugin-zip
- Repository: https://github.com/liufeifeiholy/vite-plugin-zip
- Homepage: https://github.com/liufeifeiholy/vite-plugin-zip/tree/master/#readme
- Issues: https://github.com/liufeifeiholy/vite-plugin-zip/issues
- npm.io page: https://npm.io/package/vite-plugin-zip

## Dependencies (1)

- [yazl](https://npm.io/package/yazl.md) ^2.5.1

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-17
- 1.0.0 — 2021-11-17

## README

# vite-plugin-zip
A Vite plugin to zip up files

## Install (yarn or npm)

**node version:** >=12.0.0

**vite version:** >=2.0.0

```bash
yarn add vite-plugin-zip -D
```

or

```bash
npm i vite-plugin-zip -D
```



## Options
| Parameter  | Types                 | Default | Description  
| ---------- | --------------------- | ------- | ------------
|dir         | String                |dist| directory to zip up
|name        | Stirng                |`${new Date().getMonth() + 1}${new Date().getDate()}`| name of output file



## Usage
```
// vite-up-config
import { defineConfig } from 'vite'
import zip from '../dist/index.mjs'

export default defineConfig({
  plugins: [
    zip({
      dir: 'dist',
      outputName: 'liufeifeiholy'
    })
  ]
})
```

## Example
```
yarn
yarn build
cd ./example
yarn build
```

---
_Source: https://npm.io/package/vite-plugin-zip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
