-
Notifications
You must be signed in to change notification settings - Fork 2
/
lighthouserc.js
47 lines (47 loc) · 1.3 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
47
module.exports = {
ci: {
collect: {
staticDistDir: './dist',
url: 'http://localhost/index.html',
numberOfRuns: 5,
settings: {
throttling: {
// South Korea average rtt: 32.66ms (2022)
// Average Download: 151.92Mbps (2022)
rttMs: 70, // Slow down x2
throughputKbps: 50 * 1024, // Slow down x3
cpuSlowdownMultiplier: 1,
},
skipAudits: [
'redirects-http',
'is-on-https',
'works-offline',
'bf-cache',
'csp-xss',
'uses-rel-preconnect',
'color-contrast',
'unused-css-rules',
'unused-javascript',
],
},
},
upload: {
target: 'lhci',
serverBaseUrl: 'https://lighthouse.hybus.app',
token: process.env.LHCI_TOKEN,
githubAppToken: process.env.LHCI_GITHUB_APP_TOKEN,
basicAuth: {
username: process.env.LHCI_USERNAME,
password: process.env.LHCI_PASSWORD,
},
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.9 }],
'categories:accessibility': ['warn', { minScore: 0.9 }],
'categories:best-practices': ['error', { minScore: 0.9 }],
'categories:seo': ['error', { minScore: 0.9 }],
},
},
},
}