esc1-zip
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

A plugin for rollup or vite to compress the bundle directory which supports .zip .tar .tgz formats.

Usage

  1. download from npm
  npm install rollup-plugin-compress-dist --dev
  1. Modify configuration file of project. it would archive dist directory to dist.tar.gz by default.For example:
//vite.config.ts
import { defineConfig } from 'vite';
import compressDist, { CompressOptions } from 'rollup-plugin-compress-dist';
...
 const compressOpts: CompressOptions<'tgz'> = {
   type: 'tgz',
   archiverName: 'dist.tar.gz',
   sourceName: 'dist',
 };
export default defineConfig({
  plugins: [compressDist(compressOpts)],
  ...
});

Readme

Keywords

none

Package Sidebar

Install

npm i esc1-zip

Weekly Downloads

3

Version

1.1.4

License

ISC

Unpacked Size

6.38 kB

Total Files

7

Last publish

Collaborators

  • esc-wzs