mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: restore old lighthouse-ci.yml cfg
This commit is contained in:
parent
cb4fa5d8ae
commit
cab1043a46
3 changed files with 95 additions and 93 deletions
|
|
@ -3,56 +3,7 @@
|
|||
"collect": {
|
||||
"staticDistDir": "./dist",
|
||||
"numberOfRuns": 3,
|
||||
"url": ["/browser/index.html"],
|
||||
"budgets": [
|
||||
{
|
||||
"path": "/*",
|
||||
"resourceSizes": [
|
||||
{
|
||||
"resourceType": "script",
|
||||
"budget": 1200
|
||||
},
|
||||
{
|
||||
"resourceType": "stylesheet",
|
||||
"budget": 100
|
||||
},
|
||||
{
|
||||
"resourceType": "image",
|
||||
"budget": 300
|
||||
},
|
||||
{
|
||||
"resourceType": "font",
|
||||
"budget": 100
|
||||
},
|
||||
{
|
||||
"resourceType": "total",
|
||||
"budget": 1500
|
||||
}
|
||||
],
|
||||
"resourceCounts": [
|
||||
{
|
||||
"resourceType": "script",
|
||||
"budget": 100
|
||||
},
|
||||
{
|
||||
"resourceType": "stylesheet",
|
||||
"budget": 10
|
||||
},
|
||||
{
|
||||
"resourceType": "image",
|
||||
"budget": 50
|
||||
},
|
||||
{
|
||||
"resourceType": "font",
|
||||
"budget": 10
|
||||
},
|
||||
{
|
||||
"resourceType": "total",
|
||||
"budget": 150
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
"url": ["http://localhost/browser/index.html"]
|
||||
},
|
||||
"assert": {
|
||||
"preset": "lighthouse:no-pwa",
|
||||
|
|
|
|||
49
tools/lighthouse/budget.json
Normal file
49
tools/lighthouse/budget.json
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[
|
||||
{
|
||||
"path": "/*",
|
||||
"resourceSizes": [
|
||||
{
|
||||
"resourceType": "script",
|
||||
"budget": 1200
|
||||
},
|
||||
{
|
||||
"resourceType": "stylesheet",
|
||||
"budget": 100
|
||||
},
|
||||
{
|
||||
"resourceType": "image",
|
||||
"budget": 300
|
||||
},
|
||||
{
|
||||
"resourceType": "font",
|
||||
"budget": 100
|
||||
},
|
||||
{
|
||||
"resourceType": "total",
|
||||
"budget": 1500
|
||||
}
|
||||
],
|
||||
"resourceCounts": [
|
||||
{
|
||||
"resourceType": "script",
|
||||
"budget": 120
|
||||
},
|
||||
{
|
||||
"resourceType": "stylesheet",
|
||||
"budget": 10
|
||||
},
|
||||
{
|
||||
"resourceType": "image",
|
||||
"budget": 50
|
||||
},
|
||||
{
|
||||
"resourceType": "font",
|
||||
"budget": 10
|
||||
},
|
||||
{
|
||||
"resourceType": "total",
|
||||
"budget": 150
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue