A Vite plugin that automatically zips the dist directory after a production build. Current stable version is 1.2.0. It is a simple plugin that runs on build completion and creates a zip archive of the output folder. It offers configurable output zip name, target folder, and destination folder. Its key differentiator is simplicity — it does one thing and has minimal configuration (three parameters). It ships TypeScript types. Development appears sporadic (single contributor, no recent commits). Use cases are limited but straightforward.
npm install vite-plugin-auto-zipVerified import paths — ran on the pinned version, not inferred.
Basic setup: import AutoZip (default), place as last plugin in vite.config, optional params for zip name, source folder, output folder.
Update calls from AutoZip('./dist', 'dist.zip') to AutoZip('dist.zip', './dist') or use the new default: AutoZip() produces 'dist.zip' from './dist'.Always place AutoZip() as the last entry in the plugins array in vite.config.
No change needed — this is by design. If you need zipping in dev, consider a different approach.
No action required.
Run 'npm install vite-plugin-auto-zip' and check import statement is correct.
Use 'import AutoZip from ...' instead of 'import { AutoZip } from ...'.Run 'vite build' to trigger the plugin.
No dependency data recorded yet.