
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
rollup-plugin-zip
Advanced tools
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.
npm i -D rollup-plugin-zip
// rollup.config.js
import zip from 'rollup-plugin-zip'
export default {
input: 'index.js',
output: {
dir: 'dist',
format: 'es',
},
plugins: [
zip(),
],
}
string
`${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.
string
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.
FAQs
Rollup plugin to zip up emitted files.
We found that rollup-plugin-zip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.