feat(ci): add bundlesize configuration
This commit is contained in:
13
package.json
13
package.json
@@ -16,8 +16,19 @@
|
|||||||
"test:e2e:ui": "playwright test --ui",
|
"test:e2e:ui": "playwright test --ui",
|
||||||
"test:perf": "k6 run tests/performance/k6/load.js",
|
"test:perf": "k6 run tests/performance/k6/load.js",
|
||||||
"test:lighthouse": "lhci autorun --config tests/performance/lighthouserc.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": {
|
"dependencies": {
|
||||||
"framer-motion": "^12.34.1",
|
"framer-motion": "^12.34.1",
|
||||||
"lucide-react": "^0.574.0",
|
"lucide-react": "^0.574.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user