
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
zip-stream-webpack-plugin
Advanced tools
A webpack plugin to zip the output files which is highly customizable.
npm install --save-dev zip-stream-webpack-plugin
webpack.config.js
var ZipStreamPlugin = require('zip-stream-webpack-plugin');
module.exports = {
output: {
path: path.join(__dirname, 'dist'),
filename: 'main.js'
},
plugins: [
new ZipStreamPlugin({
// optional: defaults to webpack's output path & filename
path: 'targets',
filename: 'final_build.zip'
// optional: include/exclude files, here exclude has high precedence over include
exclude: [/__MAC*/, /DS_Store/, /.js.map/,],
include: null,
extension: "zip", // defaults to zip if no extension specified in output filename
// optional: defaults to noop
// it uses Archiver to zip the output directory
customizeArchiver: (archive) => {
// here archiver can be costomized
// see https://www.npmjs.com/package/archiver
},
// optional: the default behaviour of this plugin is to zip entire output directory.
// With this flag it can be disabled and customize completely with
// customizeArchiver
allowDefaults: true,
})
]
}
FAQs
Webpack plugin to zip assets with archiver
We found that zip-stream-webpack-plugin 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.