feat(ci): add bundlesize configuration

This commit is contained in:
Tuan-Dat Tran
2026-02-20 17:24:21 +01:00
parent 4c0f53a3e3
commit dee36dafd3

View File

@@ -16,8 +16,19 @@
"test:e2e:ui": "playwright test --ui",
"test:perf": "k6 run tests/performance/k6/load.js",
"test:lighthouse": "lhci autorun --config tests/performance/lighthouserc.js",
"prepare": "husky"
"prepare": "husky",
"bundle:check": "npm run build && bundlesize"
},
"bundlesize": [
{
"path": "./dist/assets/*.js",
"maxSize": "500kb"
},
{
"path": "./dist/assets/*.css",
"maxSize": "100kb"
}
],
"dependencies": {
"framer-motion": "^12.34.1",
"lucide-react": "^0.574.0",