-
Notifications
You must be signed in to change notification settings - Fork 465
Expand file tree
/
Copy pathlighthouserc.json
More file actions
39 lines (39 loc) · 1.41 KB
/
lighthouserc.json
File metadata and controls
39 lines (39 loc) · 1.41 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
{
"$schema": "https://raw.githubusercontent.com/GoogleChrome/lighthouse-ci/main/docs/schema.json",
"ci": {
"collect": {
"numberOfRuns": 3,
"url": [
"http://localhost:4321/",
"http://localhost:4321/about/",
"http://localhost:4321/anime/"
],
"startServerCommand": "pnpm preview",
"startServerReadyPattern": "localhost:4321",
"startServerReadyTimeout": 30000
},
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.85 }],
"categories:accessibility": ["error", { "minScore": 0.9 }],
"categories:best-practices": ["error", { "minScore": 0.9 }],
"categories:seo": ["error", { "minScore": 0.9 }],
"categories:pwa": "off",
"first-contentful-paint": ["warn", { "maxNumericValue": 2000 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 4000 }],
"cumulative-layout-shift": ["warn", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 500 }],
"speed-index": ["warn", { "maxNumericValue": 4000 }],
"interactive": ["warn", { "maxNumericValue": 5000 }],
"uses-optimized-images": "off",
"uses-webp-images": "off",
"uses-text-compression": "off",
"uses-long-cache-ttl": "off"
}
},
"upload": {
"target": "lhci",
"serverBaseUrl": "http://localhost:9001"
}
}
}