-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlighthouserc.js
45 lines (45 loc) · 1.1 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
module.exports = {
ci: {
collect: {
numberOfRuns: 3,
startServerCommand: 'DEBUG=True make webserver',
url: ['http://localhost:8020/'],
settings: {
onlyCategories: [
'performance',
'accessibility',
'best-practices',
'seo',
],
skipAudits: ['uses-http2'],
chromeFlags: '--no-sandbox',
extraHeaders: JSON.stringify({
Cookie: 'customCookie=1',
}),
},
},
assert: {
assertions: {
'categories:performance': [
'error',
{ minScore: 0.37, aggregationMethod: 'pessimistic' },
],
'categories:accessibility': [
'error',
{ minScore: 0.89, aggregationMethod: 'pessimistic' },
],
'categories:best-practices': [
'error',
{ minScore: 0.89, aggregationMethod: 'pessimistic' },
],
'categories:seo': [
'error',
{ minScore: 0.85, aggregationMethod: 'pessimistic' },
],
},
},
upload: {
target: 'temporary-public-storage',
},
},
}