JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1052
  • Score
    100M100P100Q107140F
  • License MIT

Rollup plugin to zip up emitted files.

Package Exports

  • rollup-plugin-zip

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-zip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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'

An optional name of the output zip file.

License

MIT © Petr Tsymbarovich