New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-zip

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-zip

Rollup plugin to zip up emitted files.

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source

rollup-plugin-zip

Rollup plugin to zip up emitted files.

This plugin was inspired by the zip-webpack-plugin.

rollup-plugin-zip doesn't list the output directory but gets entries from the resulting bundle. Hence it doesn't archive any additional assets which was copied to the output firectory manually. To handle additional assets use the rollup-plugin-copy2 plugin.

Install

npm i -D rollup-plugin-zip

Usage

// rollup.config.js

import zip from 'rollup-plugin-zip'


export default {
  input: 'index.js',
  output: {
    dir: 'dist',
    format: 'es',
  },
  plugins: [
    zip(),
  ],
}

Options

file

Type
string
Default
`${npm_package_name}-${npm_package_version}.zip` || `bundle-${npm_package_version}.zip` || 'bundle.zip'

Optional name or path to the output zip file. Relative paths are resolved in the Rollup destination directory. To change the destination directory without changing the file name use the dir option.

dir

Type
string
Default

Rollup destination directory if file is not set. If file is set then dir is ignored.

Optional path to the directory where to write the output zip file. Relative paths are resolved in the package base directory.

License

MIT © Petr Tsymbarovich

Keywords

rollup

FAQs

Package last updated on 30 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts