mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: update lighthouse cfg
This commit is contained in:
parent
fffeb0326d
commit
bd541c067b
3 changed files with 76 additions and 4 deletions
25
tools/lighthouse/.lighthouserc.json
Normal file
25
tools/lighthouse/.lighthouserc.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
49
tools/lighthouse/budget.json
Normal file
49
tools/lighthouse/budget.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue