From dee36dafd3bfa25873f3232b8e83d71ad5a5aa36 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Fri, 20 Feb 2026 17:24:21 +0100 Subject: [PATCH] feat(ci): add bundlesize configuration --- package.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d8cfb63..f585082 100644 --- a/package.json +++ b/package.json @@ -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",