-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathlighthouserc.cjs
More file actions
29 lines (29 loc) · 997 Bytes
/
Copy pathlighthouserc.cjs
File metadata and controls
29 lines (29 loc) · 997 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
/** @type {import('@lhci/cli').LHCI.ServerCommand.Options} */
module.exports = {
ci: {
collect: {
staticDistDir: './dist',
numberOfRuns: 3,
settings: {
preset: 'desktop',
onlyCategories: ['performance', 'accessibility', 'best-practices', 'seo'],
},
},
assert: {
includePassedAssertions: true,
assertions: {
'categories:performance': ['warn', { minScore: 0.65 }],
'categories:accessibility': ['error', { minScore: 0.85 }],
'categories:best-practices': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.75 }],
'first-contentful-paint': ['warn', { maxNumericValue: 3000 }],
'largest-contentful-paint': ['warn', { maxNumericValue: 4000 }],
'cumulative-layout-shift': ['error', { maxNumericValue: 0.15 }],
'total-blocking-time': ['warn', { maxNumericValue: 500 }],
},
},
upload: {
target: 'temporary-public-storage',
},
},
};