-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.lighthouserc.cjs
30 lines (30 loc) Β· 1.02 KB
/
.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
// @lighthouserc.js
module.exports = {
ci: {
collect: {
staticDistDir: './dist',
url: ['http://localhost:3000'],
numberOfRuns: 5
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.7 }],
'categories:accessibility': ['warn', { minScore: 0.7 }],
'categories:seo': ['warn', { minScore: 0.7 }],
'categories:best-practices': ['warn', { minScore: 0.7 }],
'first-contentful-paint': ['warn', { maxNumericValue: 2000 }],
'largest-contentful-paint': ['warn', { maxNumericValue: 2500 }],
'cumulative-layout-shift': ['warn', { maxNumericValue: 0.1 }]
}
},
upload: {
target: 'filesystem',
outputDir: './lhci_reports',
reportFilenamePattern:
'%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%'
},
server: {
port: 9000
}
}
};