rollup-plugin-zipdir
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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:

Package Sidebar

Install

npm i rollup-plugin-zipdir

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

7.93 kB

Total Files

6

Last publish

Collaborators

  • elijaholmos