@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),
}),
],
};