Add Lighthouse CI config with >=95 thresholds across 4 categories

This commit is contained in:
hsiegeln
2026-04-24 17:24:37 +02:00
parent 04a1bd0aaf
commit cc7802e461

28
lighthouserc.cjs Normal file
View File

@@ -0,0 +1,28 @@
module.exports = {
ci: {
collect: {
staticDistDir: './dist',
url: [
'http://localhost/index.html',
'http://localhost/pricing/index.html',
'http://localhost/imprint/index.html',
'http://localhost/privacy/index.html',
],
numberOfRuns: 1,
settings: {
preset: 'desktop',
},
},
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 }],
},
},
upload: {
target: 'temporary-public-storage',
},
},
};