1.0.1 • Published 2 years ago

rollup-plugin-zipdir v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rollup-plugin-zipdir

Rollup plugin to zip the entire output directory using fflate.

Designed as an alternative to rollup-plugin-zip. More info here

Installation

# pnpm
pnpm add rollup-plugin-zipdir -D

# yarn
yarn add rollup-plugin-zipdir -D

# npm
npm i rollup-plugin-zipdir -D

Usage

// rollup.config.js
import zipDir from 'rollup-plugin-zipdir';

export default {
	input: 'src/index.js',
	output: {
		dir: 'build',
		format: 'esm',
	},
	plugins: [
		// zipDir should be the last plugin
		zipDir({
			outputDir: 'dist',
		}),
	],
};

Inspiration

Designed as an alternative to rollup-plugin-zip. Main differences: