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:
@@ -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' },
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user