Skip to content

VitePress-Plugin-Compression

VitePress plugin for packing build folder.

Zip, 7Zip, Tar, and more ...

Install

bash
npm i -D vitepress-plugin-compression
bash
yarn add -D vitepress-plugin-compression
bash
pnpm add -D vitepress-plugin-compression

Usage

ts
// .vitepress/config.js
import { defineConfig } from "vitepress";
import compression from "vitepress-plugin-compression";

export default defineConfig({
  async buildEnd() {
    compression();
  },
});