
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.
serverless-webpack-prisma
Advanced tools
When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.
When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engines.
First, install the package by entering the following command.
npm install -D serverless-webpack-prisma
Add the corresponding plugin under the webpack plugin as shown below.
plugins:
- serverless-webpack
- serverless-webpack-prisma
If you have already used the generate script below, please delete it.
custom:
webpack:
packagerOptions:
scripts:
- prisma generate
This plugin also has some additional configs:
custom:
prisma:
installDeps: false # Passing false will not install Prisma dependency during the build process. Default: true
prismaPath: ../../ # Passing this param, plugin will change the directory to find the dir prisma containing the prisma/prisma.schema
dataProxy: false # Passing this param, plugin will create the prisma client for use with a data proxy see: https://www.prisma.io/docs/data-platform/data-proxy
useSymLinkForPrisma: true # Passing this param, plugin will symlink prisma dir instead of copying.
ignoreFunctions: # Passing this param, we tell plugin which functions should be ignored and processed as non prisma based functions.
- someNonPrismaFunction
version: "5.0.0" # Passing this param, we teel plugin which version of prisma to install: Default: ""
webpack:
webpackOutputPath: ./ # Passing this param, plugin will change the directory to find the dir .webpack
Congratulations. The setup is complete. In the future, packaging will automatically delete unnecessary resources.
Serverless: Generate prisma client for app...
Serverless: Remove unused prisma engine:
Serverless: - node_modules/.prisma/client/libquery_engine-darwin.dylib.node
Serverless: - node_modules/@prisma/engines/introspection-engine-darwin
Serverless: - node_modules/@prisma/engines/libquery_engine-darwin.dylib.node
Serverless: - node_modules/@prisma/engines/migration-engine-darwin
Serverless: - node_modules/@prisma/engines/prisma-fmt-darwin
FAQs
When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.
The npm package serverless-webpack-prisma receives a total of 916 weekly downloads. As such, serverless-webpack-prisma popularity was classified as not popular.
We found that serverless-webpack-prisma 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.