-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.json
More file actions
60 lines (60 loc) · 2.16 KB
/
lighthouserc.json
File metadata and controls
60 lines (60 loc) · 2.16 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"ci": {
"collect": {
"numberOfRuns": 3,
"startServerCommand": "npm run start",
"startServerReadyPattern": "ready on",
"url": [
"http://localhost:3000/",
"http://localhost:3000/about",
"http://localhost:3000/start-here",
"http://localhost:3000/content/videos",
"http://localhost:3000/content/blog",
"http://localhost:3000/content/resources",
"http://localhost:3000/community",
"http://localhost:3000/speaking"
],
"settings": {
"preset": "desktop",
"throttling": {
"rttMs": 40,
"throughputKbps": 10240,
"cpuSlowdownMultiplier": 1
}
}
},
"assert": {
"preset": "lighthouse:recommended",
"assertions": {
"categories:performance": ["error", { "minScore": 0.9 }],
"categories:accessibility": ["error", { "minScore": 0.95 }],
"categories:best-practices": ["error", { "minScore": 0.95 }],
"categories:seo": ["error", { "minScore": 0.95 }],
"first-contentful-paint": ["warn", { "maxNumericValue": 2000 }],
"largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 300 }],
"speed-index": ["warn", { "maxNumericValue": 3000 }],
"interactive": ["warn", { "maxNumericValue": 3500 }],
"max-potential-fid": ["warn", { "maxNumericValue": 100 }],
"uses-responsive-images": "error",
"offscreen-images": "warn",
"uses-optimized-images": "error",
"modern-image-formats": "error",
"uses-text-compression": "error",
"uses-rel-preconnect": "warn",
"font-display": "warn",
"unminified-css": "error",
"unminified-javascript": "error",
"unused-css-rules": "warn",
"unused-javascript": "warn",
"uses-long-cache-ttl": "warn",
"total-byte-weight": ["warn", { "maxNumericValue": 1000000 }],
"dom-size": ["warn", { "maxNumericValue": 1500 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}