Lighthouse slows the CPU 4x relative to the measuring machine, so the Raspberry Pi runner scores performance 30-40 points lower than a PC for the same build. In CI the performance assertions now only warn; accessibility, best practices and SEO still block, and performance still blocks in `pnpm check` on a PC. Mobile and desktop reports go to separate folders and are attached to every run as an artifact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
961 B
JavaScript
35 lines
961 B
JavaScript
// Desktopmeting: zelfde pagina's en doelen als mobiel, maar ook de homepage
|
|
// moet hier Performance 0,9 halen.
|
|
const base = require('./lighthouserc.cjs');
|
|
|
|
const [home, ...rest] = base.ci.assert.assertMatrix;
|
|
|
|
module.exports = {
|
|
ci: {
|
|
...base.ci,
|
|
collect: {
|
|
...base.ci.collect,
|
|
settings: { ...base.ci.collect.settings, preset: 'desktop' },
|
|
},
|
|
assert: {
|
|
assertMatrix: [
|
|
{
|
|
...home,
|
|
assertions: {
|
|
...home.assertions,
|
|
'categories:performance': [
|
|
base.performanceLevel,
|
|
{ minScore: 0.9 },
|
|
],
|
|
},
|
|
},
|
|
...rest,
|
|
],
|
|
},
|
|
upload: {
|
|
...base.ci.upload,
|
|
outputDir: 'lighthouse-reports/desktop',
|
|
},
|
|
},
|
|
};
|