reinerBa / vite-plugin-zip-pack

Vite plugin for turning your distribution folder into a zip file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vite-plugin-zip-pack

npm

Vite plugin for packing distribution/build folder into a zip file.

Install

npm i -D vite-plugin-zip-pack

Usage

// vite.config.js

import { defineConfig } from "vite";
import zipPack from "vite-plugin-zip-pack";

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

Options

export interface Options {
  /**
   * Input Directory
   * @default `dist`
   */
  inDir?: string;
  /**
   * Output Directory
   * @default `dist-zip`
   */
  outDir?: string;
  /**
   * Zip Archive Name
   * @default `dist.zip`
   */
  outFileName?: string;
  /**
   * Path prefix for the files included in the zip file
   * @default ``
   */
  pathPrefix?: string;
}

License

MIT, see the license file

About

Vite plugin for turning your distribution folder into a zip file.

License:MIT License


Languages

Language:TypeScript 100.0%