-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlighthouserc.cjs
35 lines (35 loc) · 927 Bytes
/
lighthouserc.cjs
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
module.exports = {
ci: {
collect: {
startServerCommand: 'npm run preview',
url: [
'http://localhost:4173',
'http://localhost:4173/log',
// 'http://localhost:4173/walk',
'http://localhost:4173/login',
'http://localhost:4173/mypage',
'http://localhost:4173/profile/:id',
],
numberOfRuns: 2,
startServerReadyPattern: 'Local',
},
upload: {
target: 'filesystem',
outputDir: './lhci_reports',
reportFilenamePattern: '%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%',
},
assert: {
preset: 'lighthouse:recommended',
assertions: {
'is-crawlable': 'off',
'color-contrast': 'off',
'unsized-images': 'warn',
'csp-xss': 'off',
'unused-javascript': 'warn',
'uses-rel-preconnect': 'warn',
'link-name': 'warn',
bypass: 'warn',
},
},
},
}