forked from qp-official-org/Frontend_React
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.lighthouserc.json
35 lines (35 loc) · 954 Bytes
/
.lighthouserc.json
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
{
"ci": {
"collect": {
"staticDistDir": "./build",
"startServerReadyPattern": "ready on",
"url": [
"http://localhost:3000",
"http://localhost:3000/profile",
"http://localhost:3000/detail"
],
"numberOfRuns": 1,
"settings": {
"preset": "desktop",
"chromeFlags": "--no-sandbox"
}
},
"assert": {
"preset": "lighthouse:recommended",
"assert": {
"assertions": {
"categories:performance": ["warn", { "minScore": 0.8 }],
"categories:accessibility": ["warn", { "minScore": 0.8 }],
"categories:best-practices": ["warn", { "minScore": 0.8 }],
"categories:seo": ["warn", { "minScore": 0.8 }]
}
}
},
"server": {},
"upload": {
"target": "filesystem",
"outputDir": "./lhci_reports",
"reportFilenamePattern": "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%"
}
}
}