@gordonmleigh/rollup-plugin-zip

0.1.3 • Public • Published

@gordonmleigh/rollup-plugin-zip

A Rollup plugin to bundle files into a zip.

import zip from "@gordonmleigh/rollup-plugin-zip";

export default {
  input: "lib/index.js",

  output: {
    file: "dist/index.mjs",
  },

  plugins: [
    zip({
      // set the name of the zip file (defaults to "bundle.zip")
      outputFileName: "bundle.zip",
      // set an explicit last modified date
      // useful to keep zip hashes identical when the contents haven't changed
      // defaults to the current time
      overrideModifiedDate: new Date(0),
    }),
  ],
};

Package Sidebar

Install

npm i @gordonmleigh/rollup-plugin-zip

Weekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

3.92 kB

Total Files

4

Last publish

Collaborators

  • gordonmleigh