build: update lighthouse cfg

This commit is contained in:
Johannes Millan 2025-06-17 20:53:30 +02:00
parent fffeb0326d
commit bd541c067b
3 changed files with 76 additions and 4 deletions

View file

@ -0,0 +1,25 @@
{
"ci": {
"collect": {
"staticDistDir": "./dist",
"numberOfRuns": 3
},
"assert": {
"preset": "lighthouse:no-pwa",
"assertions": {
"categories:performance": ["warn", { "minScore": 0.8 }],
"categories:accessibility": ["warn", { "minScore": 0.9 }],
"categories:best-practices": ["warn", { "minScore": 0.9 }],
"categories:seo": ["warn", { "minScore": 0.9 }],
"first-contentful-paint": ["warn", { "maxNumericValue": 2500 }],
"largest-contentful-paint": ["warn", { "maxNumericValue": 4000 }],
"cumulative-layout-shift": ["warn", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 300 }],
"interactive": ["warn", { "maxNumericValue": 5000 }]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}

View file

@ -0,0 +1,49 @@
[
{
"path": "/*",
"resourceSizes": [
{
"resourceType": "script",
"budget": 500
},
{
"resourceType": "stylesheet",
"budget": 100
},
{
"resourceType": "image",
"budget": 300
},
{
"resourceType": "font",
"budget": 100
},
{
"resourceType": "total",
"budget": 1500
}
],
"resourceCounts": [
{
"resourceType": "script",
"budget": 20
},
{
"resourceType": "stylesheet",
"budget": 10
},
{
"resourceType": "image",
"budget": 50
},
{
"resourceType": "font",
"budget": 10
},
{
"resourceType": "total",
"budget": 100
}
]
}
]