/serverless-plugin-package-size

Just a small plugin to guard against huge deployment packages

Primary LanguageJavaScript

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.