
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.
webpack-copy-bundle
Advanced tools
Webpack plugin to copy your bundle after a successful build.
In some cases you might want to copy your bundle to a directory after a successful build. However, Webpack does not allow you to do these 'out-of-source' builds. You can use the standard Webpack Copy Plugin, however then you need to manually copy all related files (bundle, source-map, etc.). To make this a bit easier you can use the Webpack Copy Bundle Plugin
Using this plugin you can give a list of bundles to copy and where to copy them to. The plugin takes care of copying all of the related files to the output directory.
npm install webpack-copy-bundle --save-dev
const WebpackCopyBundle = require('./src');
module.exports = {
entry: './src/index.js',
plugins: [
new WebpackCopyBundle({
main: '../example/folder',
})
]
};
Example of multiple entries:
const WebpackCopyBundle = require('./src');
module.exports = {
entry: {
main: './src/index.js',
worker: './src/worker.js'
},
plugins: [
new WebpackCopyBundle({
main: '../example/folder',
worker: '../example/folder/worker',
})
]
};
FAQs
Webpack plugin to copy your bundle after a successful build.
We found that webpack-copy-bundle 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.