-
Notifications
You must be signed in to change notification settings - Fork 1
/
lighthouserc.js
54 lines (54 loc) · 1.57 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
48
49
50
51
52
53
54
module.exports = {
ci: {
collect: {
numberOfRuns: 3,
startServerCommand: 'npm start',
url: ['http://localhost:3000/'],
settings: {
onlyCategories: [
'performance',
'accessibility',
'best-practices',
'seo',
// pwa
],
skipAudits: ['uses-http2'],
chromeFlags: '--no-sandbox',
extraHeaders: JSON.stringify({
Cookie: 'customCookie'
})
}
},
assert: {
assertions: {
'categories:performance': [
'error',
{
minScore: 0.7, aggregationMethod: 'mediun-run',
}
],
'categories:accessibility': [
'error',
{
minScore: 0.7, aggregationMethod: 'pessimistic',
}
],
'categories:best-practices': [
'error',
{
minScore: 0.7, aggregationMethod: 'pessimistic',
}
],
'categories:seo': [
'error',
{
minScore: 0.7, aggregationMethod: 'pessimistic'
}
]
}
},
upload: {
target: 'temporary-public-storage'
}
}
}