Rollup plugin that creates a ZIP archive of emitted files during the build process. Version 1.0.3 is the latest stable version, with occasional minor updates. It integrates directly with Rollup's output pipeline, archiving only the files emitted by the bundle, not additional assets (those require separate handling via plugins like rollup-plugin-copy2). This plugin is inspired by zip-webpack-plugin and supports custom output filenames and directories.
npm install rollup-plugin-zipVerified import paths — ran on the pinned version, not inferred.
Creates a ZIP archive of all files emitted by Rollup into 'dist', saving as 'archives/bundle.zip'.
Use rollup-plugin-copy2 or similar to copy additional assets before zipping.
Use only `file` or only `dir` to avoid confusion; set path relative to output dir or package root accordingly.
Switch to ES module syntax in your project or use dynamic import.
Use `import zip from 'rollup-plugin-zip'` in an ES module context.
Use `import zip from 'rollup-plugin-zip'` without curly braces.
Ensure you call `zip()` (with parentheses) in your plugins array, e.g., `plugins: [zip()]`.