serverless-plugin-package-size
v1.1.3
Published
Check the size of your serverless functions
Downloads
5,293
Maintainers
Readme
serverless-plugin-package-size
Helps avoid accidentally deploying huge artifacts that are either slow to load, can't be debugged, etc.
cat serverless.yml
custom:
packageLimit: '2mb'
This will fail if your package artifact exceeds 2mb. Supports whatever bytes-iec
supports for the limit expression.