-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlighthouserc.js
46 lines (46 loc) · 1.47 KB
/
lighthouserc.js
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
// Find more detaisl here https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md
module.exports = {
ci: {
"assert": {
"assertions": {
"categories:accessibility": ["error", { "minScore": 1 }],
"categories:bestPractices": ["error", { "minScore": 1 }],
"categories:performance": ["error", { "minScore": 1 }],
"categories:seo": ["error", { "minScore": 1 }],
}
},
"upload": {
"target": 'temporary-public-storage',
},
"collect": {
"settings":{
"onlyCategories": [
"accessibility",
"best-practices",
"performance",
"seo",
],
// find the list of all audits names https://github.com/GoogleChrome/lighthouse/blob/main/core/config/default-config.js
// Skip those because on the deployed website the score is a perfect 100. LHCI seems to run on a worst server.
"skipAudits": [
"unused-javascript",
"largest-contentful-paint",
'first-contentful-paint',
'speed-index',
"largest-contentful-paint-element",
"render-blocking-resources"
],
"formFactor": 'desktop',
"screenEmulation": {
"mobile": false,
"width": 1350,
"height": 940,
"deviceScaleFactor": 1,
"disabled": false,
},
// "isSinglePageApplication": true
},
"staticDistDir": "./dist/webnuggets/browser",
},
},
};