Skip to content

Commit

Permalink
add performance budget to spotlight app
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner committed Dec 18, 2024
1 parent d692905 commit e6dbeea
Show file tree
Hide file tree
Showing 2 changed files with 1,150 additions and 201 deletions.
19 changes: 16 additions & 3 deletions apps/spotlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@
"build": "astro build",
"clean": "rimraf dist tsconfig.tsbuildinfo coverage",
"dev": "astro dev",
"preview": "astro preview"
"preview": "astro preview",
"size": "pnpm build && size-limit"
},
"size-limit": [
{
"path": "dist/_astro/*.css",
"limit": "50 kB"
},
{
"path": "dist/_astro/*.js",
"limit": "425 kB"
}
],
"dependencies": {
"@astrojs/react": "^3.6.1",
"@atj/common": "workspace:*",
Expand All @@ -20,12 +31,14 @@
"react-dom": "^18.3.1",
"react-error-boundary": "^4.0.13",
"react-router-dom": "^6.26.0",
"sharp": "^0.33.5",
"zustand": "^4.5.4"
},
"devDependencies": {
"@astrojs/check": "^0.4.1",
"@size-limit/preset-app": "^11.1.6",
"@types/qs": "^6.9.15",
"@types/react": "^18.3.3"
"@types/react": "^18.3.3",
"sharp": "^0.33.5",
"size-limit": "^11.1.6"
}
}
Loading

0 comments on commit e6dbeea

Please sign in to comment.