-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lighthouserc.json
More file actions
46 lines (46 loc) · 1.91 KB
/
.lighthouserc.json
File metadata and controls
46 lines (46 loc) · 1.91 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
{
"ci": {
"collect": {
"numberOfRuns": 2,
"settings": {
"onlyCategories": ["performance", "accessibility", "best-practices", "seo"],
"formFactor": "desktop",
"throttling": {
"rttMs": 40,
"throughputKbps": 10240,
"cpuSlowdownMultiplier": 1
},
"screenEmulation": {
"mobile": false,
"width": 1350,
"height": 940,
"deviceScaleFactor": 1,
"disabled": false
}
}
},
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.85 }],
"categories:accessibility": ["error", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }],
"first-contentful-paint": ["warn", { "maxNumericValue": 3000 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 4000 }],
"total-blocking-time": ["warn", { "maxNumericValue": 500 }],
"cumulative-layout-shift": ["warn", { "maxNumericValue": 0.1 }],
"interactive": ["warn", { "maxNumericValue": 5000 }],
"speed-index": ["warn", { "maxNumericValue": 5000 }],
"uses-https": ["error", { "minScore": 1 }],
"no-vulnerable-libraries": ["warn", { "minScore": 1 }],
"is-on-https": ["error", { "minScore": 1 }],
"errors-in-console": ["warn", { "maxLength": 0 }]
}
},
"upload": {
"target": "filesystem",
"outputDir": "lhci-results",
"reportFilenamePattern": "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%"
}
}
}