-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
27 lines (26 loc) · 1.02 KB
/
Copy pathlighthouserc.js
File metadata and controls
27 lines (26 loc) · 1.02 KB
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
module.exports = {
ci: {
collect: {
url: ['http://localhost:3000/'],
startServerCommand: 'npm run start',
numberOfRuns: 3,
},
assert: {
assertions: {
'categories:performance': ['error', { minScore: 0.95 }],
'categories:accessibility': ['error', { minScore: 0.95 }],
'categories:best-practices': ['error', { minScore: 0.95 }],
'categories:seo': ['error', { minScore: 0.95 }],
// Performance Budgets Enforcement
'largest-contentful-paint': ['error', { maxNumericValue: 2000 }],
'cumulative-layout-shift': ['error', { maxNumericValue: 0.05 }],
// INP is experimental in Lighthouse CI depending on version, fallback to max-potential-fid or tbt if needed, but we assert what we can
'interactive': ['error', { maxNumericValue: 3500 }],
'total-byte-weight': ['error', { maxNumericValue: 1500000 }], // 1.5MB total page weight as a proxy
},
},
upload: {
target: 'temporary-public-storage',
},
},
};