-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlighthouserc.js
More file actions
30 lines (30 loc) · 947 Bytes
/
lighthouserc.js
File metadata and controls
30 lines (30 loc) · 947 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
28
29
30
module.exports = {
ci: {
collect: {
numberOfRuns: 1,
settings: {
chromeFlags: ['--ignore-certificate-errors', '--disable-gpu', '--no-sandbox'],
extraHeaders: JSON.stringify({ Authentication: 'TODO_SET_TEST_TOKEN_BUT_MAYBE_IT_NEEDS_SERVER_RUN_NOT_EXPORT' }),
},
},
assert: {
preset: 'lighthouse:recommended',
// TODO: maybe use the preset "no-pwa" since SSR
// TODO: fix those in the future, we were just missing layouts to manage them
assertions: {
'apple-touch-icon': 'off',
'csp-xss': 'off',
'html-has-lang': 'off',
'installable-manifest': 'off',
'maskable-icon': 'off',
'meta-description': 'off',
'service-worker': 'off',
'splash-screen': 'off',
'themed-omnibox': 'off',
'document-title': 'off',
'errors-in-console': 'off',
'unused-javascript': 'off',
},
},
},
};