Skip to content

When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.

License

Notifications You must be signed in to change notification settings

pcrodrigues0/serverless-webpack-prisma

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Webpack Prisma

When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.

How to use?

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

Congratulations. 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

About

When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.9%
  • Shell 1.1%