forked from plentymarkets/plentyshop-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc.json
80 lines (75 loc) · 4.22 KB
/
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
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
70
71
72
73
74
75
76
77
78
79
80
{
"ci": {
"collect": {
"startServerCommand": "yarn start",
"url": [
"http://localhost:3000/",
"http://localhost:3000/living-room",
"http://localhost:3000/living-room/sofas/2-seater-sofa-sunflower_127"
],
"numberOfRuns": 3,
"assert": {
"includePassedAssertions": false,
"assertMatrix": [
{
"matchingUrlPattern": ".*",
"assertions": {
"categories:performance": ["warn", { "aggregationMethod": "median-run", "minScore": 0.9 }],
"categories:accessibility": ["warn", { "aggregationMethod": "pessimistic", "minScore": 1 }],
"categories:best-practices": ["warn", { "aggregationMethod": "pessimistic", "minScore": 1 }],
"categories:pwa": ["warn", { "aggregationMethod": "pessimistic", "minScore": 1 }],
"categories:seo": ["warn", { "aggregationMethod": "pessimistic", "minScore": 1 }],
"largest-contentful-paint": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 2500 }],
"total-blocking-time": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 200 }],
"interactive": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 3800 }],
"first-contentful-paint": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 1800 }],
"cumulative-layout-shift": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 0.1 }],
"speed-index": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 3400 }],
"dom-size": ["warn", { "maxNumericValue": 800 }]
}
},
{
"matchingUrlPattern": ".*",
"assertions": {
"categories:performance": ["warn", { "aggregationMethod": "median-run", "minScore": 0.8 }],
"categories:accessibility": ["warn", { "aggregationMethod": "pessimistic", "minScore": 0.9 }],
"categories:best-practices": ["warn", { "aggregationMethod": "pessimistic", "minScore": 0.9 }],
"categories:pwa": ["warn", { "aggregationMethod": "pessimistic", "minScore": 0.9 }],
"categories:seo": ["warn", { "aggregationMethod": "pessimistic", "minScore": 0.9 }],
"total-blocking-time": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 600 }],
"largest-contentful-paint": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 5200 }],
"interactive": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 7300 }],
"first-contentful-paint": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 3000 }],
"cumulative-layout-shift": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 0.25 }],
"speed-index": ["warn", { "aggregationMethod": "median-run", "maxNumericValue": 5800 }],
"dom-size": ["warn", { "maxNumericValue": 1400 }],
"resource-summary:media:size": ["warn", { "maxNumericValue": 1 }],
"resource-summary:stylesheet:size": ["warn", { "maxNumericValue": 21000 }]
}
},
{
"matchingUrlPattern": "http://localhost:3000/$",
"assertions": {
"resource-summary:image:size": ["warn", { "maxNumericValue": 210000 }],
"resource-summary:script:size": ["warn", { "maxNumericValue": 360000 }],
"resource-summary:document:size": ["warn", { "maxNumericValue": 21000 }],
"resource-summary:font:size": ["warn", { "maxNumericValue": 65000 }]
}
},
{
"matchingUrlPattern": "http://localhost:3000/living-room/sofas/couch-purple-dreams_134",
"assertions": {
"resource-summary:image:size": ["warn", { "maxNumericValue": 20000 }],
"resource-summary:script:size": ["warn", { "maxNumericValue": 330000 }],
"resource-summary:document:size": ["warn", { "maxNumericValue": 21000 }],
"resource-summary:font:size": ["warn", { "maxNumericValue": 85000 }]
}
}
]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}