rollup-plugin-zip-encryptable
Rollup plugin to zip up emitted files. Work with password.
This plugin was inspired by the
rollup-plugin-zip.
Install
npm i -D rollup-plugin-zip-encryptable
Usage
import zipEncryptable from 'rollup-plugin-zip-encryptable'
export default {
input: 'index.js',
output: {
dir: 'dist',
format: 'es',
},
plugins: [
zipEncryptable({
dir: './dist/',
zlib: { level: 9 },
forceLocalTime: true,
password: '123456',
}),
],
}
Options
See details node-archiver-zip-encryptable and Archiver
interface IPluginOptions {
file?: string;
dir?: string;
password?: string;
comment?: string;
forceLocalTime?: boolean;
forceZip64?: boolean;
namePrependSlash?: boolean;
store?: boolean;
zlib?: object;
createOnce?: false,
filterFile?: (entry: OutputAsset | OutputChunk) => boolean;
}
License
MIT © asins