-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.lighthouserc.json
More file actions
40 lines (40 loc) · 1.55 KB
/
.lighthouserc.json
File metadata and controls
40 lines (40 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"ci": {
"collect": {
"startServerCommand": "NO_COLOR=1 npx vite preview --outDir .lighthouse-build",
"startServerReadyPattern": "Local",
"startServerReadyTimeout": 30000,
"url": ["http://localhost:4173"],
"numberOfRuns": 3,
"settings": {
"preset": "desktop",
"throttling": {
"rttMs": 40,
"throughputKbps": 10240,
"cpuSlowdownMultiplier": 1
}
}
},
"assert": {
"assertions": {
"largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
"first-contentful-paint": ["error", { "maxNumericValue": 1800 }],
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 350 }],
"interactive": ["warn", { "maxNumericValue": 3800 }],
"speed-index": ["warn", { "maxNumericValue": 3400 }],
"resource-summary:script:size": ["error", { "maxNumericValue": 600000 }],
"resource-summary:stylesheet:size": ["error", { "maxNumericValue": 100000 }],
"resource-summary:image:size": ["warn", { "maxNumericValue": 500000 }],
"resource-summary:total:size": ["error", { "maxNumericValue": 2000000 }],
"categories:performance": ["error", { "minScore": 0.8 }],
"categories:accessibility": ["warn", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}