-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlighthouserc.js
More file actions
25 lines (25 loc) · 832 Bytes
/
lighthouserc.js
File metadata and controls
25 lines (25 loc) · 832 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
module.exports = {
ci: {
assert: {
preset: 'lighthouse:recommended',
assertions: {
'unused-css-rules': ['warn', { maxLength: 0 }],
'unused-javascript': ['warn', { maxLength: 0 }],
'without-javascript': 'off',
'unsized-images': 'off',
'color-contrast': ['warn', { minScore: 0.9 }],
},
},
collect: {
url: ['https://localhost:5000/'],
startServerCommand: 'serve dist --ssl-cert cert.pem --ssl-key key.pem',
startServerReadyPattern: 'listen|ready|serving!',
settings: {
chromeFlags: ['--ignore-certificate-errors'],
},
},
upload: {
target: 'temporary-public-storage',
},
},
}