
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
serverless-copy-webpack-plugin
Advanced tools
Webpack plugin to be used in combination with serverless webpack in order to copy resources to individual lambda functions
Should hopefully be obsolete when serverless-webpack #327 gets merged.
Webpack plugin to be used in combination with serverless-webpack to allow copying files to individual functions
Note: Originated from the discussion in serverless-webpack issues #425. Based on the code by @Omicron7 and @raymond-w-ko
To begin, install the plugin as dev dependency
$ npm install serverless-copy-webpack-plugin --save-dev
Then add the plugin to your webpack.config.js
const ServerlessCopyWebpackPlugin = require('serverless-copy-webpack-plugin');
module.exports = {
plugins: [
new ServerlessCopyWebpackPlugin()
],
};
The plugin will now copy any resources defined in your individual package includes to the artifacts for those functions. For example:
functions:
hello:
handler: handler.hello
package:
include:
src/static/*.html
will copy any html files in the src/static folder to the corresponding function package
FAQs
Webpack plugin to be used in combination with serverless webpack in order to copy resources to individual lambda functions
The npm package serverless-copy-webpack-plugin receives a total of 117 weekly downloads. As such, serverless-copy-webpack-plugin popularity was classified as not popular.
We found that serverless-copy-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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.