From cc7802e4612b28a5ae8256c97eafcb2293b646ae Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Fri, 24 Apr 2026 17:24:37 +0200 Subject: [PATCH] Add Lighthouse CI config with >=95 thresholds across 4 categories --- lighthouserc.cjs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lighthouserc.cjs diff --git a/lighthouserc.cjs b/lighthouserc.cjs new file mode 100644 index 0000000..23983bf --- /dev/null +++ b/lighthouserc.cjs @@ -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', + }, + }, +};