This repository was archived by the owner on Mar 4, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighthouserc.js
More file actions
53 lines (49 loc) · 1.64 KB
/
Copy pathlighthouserc.js
File metadata and controls
53 lines (49 loc) · 1.64 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
ci: {
collect: {
url: [
'http://localhost:50066/',
'http://localhost:50066/login',
'http://localhost:50066/files',
'http://localhost:50066/search'
],
numberOfRuns: 3,
settings: {
preset: 'desktop',
chromeFlags: '--no-sandbox --disable-dev-shm-usage',
skipAudits: [
'canonical', // Not relevant for SPA
'maskable-icon', // PWA feature not yet implemented
'installable-manifest', // PWA feature not yet implemented
]
}
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.7 }],
'categories:accessibility': ['warn', { minScore: 0.9 }],
'categories:best-practices': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.8 }],
// Performance metrics
'first-contentful-paint': ['warn', { maxNumericValue: 2000 }],
'largest-contentful-paint': ['warn', { maxNumericValue: 3000 }],
'cumulative-layout-shift': ['warn', { maxNumericValue: 0.1 }],
'total-blocking-time': ['warn', { maxNumericValue: 300 }],
// Accessibility
'color-contrast': 'error',
'image-alt': 'error',
'label': 'error',
// Best practices
'is-on-https': 'off', // We're testing locally
'uses-http2': 'off', // Local testing doesn't use HTTP/2
'no-vulnerable-libraries': 'warn',
// SEO
'meta-description': 'warn',
'document-title': 'error'
}
},
upload: {
target: 'temporary-public-storage'
}
}
};