-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlighthouserc.cjs
More file actions
27 lines (27 loc) · 880 Bytes
/
Copy pathlighthouserc.cjs
File metadata and controls
27 lines (27 loc) · 880 Bytes
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
module.exports = {
ci: {
collect: {
startServerCommand: 'yarn --ignore-engines start',
startServerReadyPattern: 'Ready',
startServerReadyTimeout: 120000,
url: [
'http://127.0.0.1:3000/',
'http://127.0.0.1:3000/resume',
'http://127.0.0.1:3000/recommendations',
'http://127.0.0.1:3000/posts'
],
numberOfRuns: 3,
settings: { chromeFlags: '--no-sandbox' }
},
assert: {
assertions: {
'categories:seo': ['error', { minScore: 1 }],
'categories:accessibility': ['error', { minScore: 1 }],
'categories:best-practices': ['error', { minScore: 0.95 }],
'categories:performance': ['error', { minScore: 0.9 }],
'cumulative-layout-shift': ['error', { maxNumericValue: 0.1 }]
}
},
upload: { target: 'filesystem', outputDir: '.lighthouseci' }
}
}