U6: Lighthouse-gate in CI (mobiel+desktop >= 0.9), font-preload hero, privacyopzet bijgewerkt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 14:35:54 +01:00
co-authored by Claude Sonnet 5.5
parent a2fe4c14b0
commit 551b3fa101
8 changed files with 2285 additions and 26 deletions
+23
View File
@@ -0,0 +1,23 @@
// Lighthouse CI tegen de gebouwde site (dist/, statisch geserveerd). Doel: NFR-9.
// Mobiele meting; lighthouserc.desktop.cjs bouwt hierop voort. `pnpm lighthouse`
// draait beide. Alle vier de categorieen moeten >= 0,9 halen (harde error).
module.exports = {
ci: {
collect: {
staticDistDir: './dist',
numberOfRuns: 1,
// In de CI-container draait Chrome als root en heeft het --no-sandbox nodig
// (LIGHTHOUSE_CHROME_FLAGS in de workflow).
settings: { chromeFlags: process.env.LIGHTHOUSE_CHROME_FLAGS ?? '' },
},
assert: {
assertions: {
'categories:performance': ['error', { minScore: 0.9 }],
'categories:accessibility': ['error', { minScore: 0.9 }],
'categories:best-practices': ['error', { minScore: 0.9 }],
'categories:seo': ['error', { minScore: 0.9 }],
},
},
upload: { target: 'filesystem', outputDir: 'lighthouse-reports/mobile' },
},
};