Skip to content

Instantly share code, notes, and snippets.

@mtorre4580
Last active March 8, 2023 01:37
Show Gist options
  • Save mtorre4580/7858c2ac169d76439ca735d418ec9ebc to your computer and use it in GitHub Desktop.
Save mtorre4580/7858c2ac169d76439ca735d418ec9ebc to your computer and use it in GitHub Desktop.
Example bundle-size budget config for Next.js
{
"files": [
{
"path": ".next/static/**/main-*.js",
"maxSize": "30 kB",
"compression": "brotli"
},
{
"path": ".next/static/chunks/pages/my-page-*.js",
"maxSize": "8 kB",
"compression": "brotli"
},
{
"path": ".next/static/chunks/pages/_app-*.js",
"maxSize": "65 kB",
"compression": "brotli"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment