-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.lighthouserc.json
More file actions
69 lines (69 loc) · 2.69 KB
/
Copy path.lighthouserc.json
File metadata and controls
69 lines (69 loc) · 2.69 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
61
62
63
64
65
66
67
68
69
{
"ci": {
"collect": {
"url": ["http://localhost:4173/"],
"numberOfRuns": 3,
"settings": {
"preset": "desktop",
"chromeFlags": "--no-sandbox --disable-dev-shm-usage --headless=new",
"throttling": {
"rttMs": 40,
"throughputKbps": 10240,
"cpuSlowdownMultiplier": 1
}
}
},
"assert": {
"preset": "lighthouse:recommended",
"assertions": {
"categories:performance": ["error", { "minScore": 0.7 }],
"categories:accessibility": ["error", { "minScore": 0.82 }],
"categories:best-practices": ["warn", { "minScore": 0.8 }],
"categories:seo": ["warn", { "minScore": 0.8 }],
"first-contentful-paint": ["error", { "maxNumericValue": 4500 }],
"largest-contentful-paint": ["error", { "maxNumericValue": 6000 }],
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.25 }],
"total-blocking-time": ["error", { "maxNumericValue": 1200 }],
"speed-index": ["error", { "maxNumericValue": 5500 }],
"interactive": ["error", { "maxNumericValue": 8000 }],
"max-potential-fid": ["warn", { "maxNumericValue": 130 }],
"server-response-time": ["warn", { "maxNumericValue": 600 }],
"uses-responsive-images": "warn",
"offscreen-images": "warn",
"uses-optimized-images": "warn",
"modern-image-formats": "warn",
"uses-text-compression": "warn",
"unused-css-rules": "warn",
"unused-javascript": "warn",
"efficient-animated-content": "warn",
"uses-passive-event-listeners": "warn",
"unminified-css": "warn",
"unminified-javascript": "warn",
"no-document-write": "error",
"network-dependency-tree-insight": "warn",
"dom-size-insight": "off",
"legacy-javascript": "off",
"render-blocking-resources": ["warn", { "maxLength": 1 }],
"render-blocking-insight": "off",
"uses-rel-preconnect": "warn",
"is-on-https": "warn",
"uses-http2": "off",
"redirects-http": "warn",
"uses-long-cache-ttl": "off",
"font-display": "warn",
"csp-xss": "warn",
"has-hsts": "warn",
"clickjacking-mitigation": "warn",
"bf-cache": "warn",
"errors-in-console": "warn",
"resource-summary:script:size": ["warn", { "maxNumericValue": 153600 }],
"resource-summary:stylesheet:size": ["warn", { "maxNumericValue": 30720 }],
"resource-summary:document:size": ["warn", { "maxNumericValue": 18000 }],
"resource-summary:total:size": ["warn", { "maxNumericValue": 360000 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}