mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
build: unify lighthouse config
This commit is contained in:
parent
8b27fe6658
commit
ce22606bf3
3 changed files with 50 additions and 52 deletions
2
.github/workflows/lighthouse-ci.yml
vendored
2
.github/workflows/lighthouse-ci.yml
vendored
|
|
@ -41,5 +41,3 @@ jobs:
|
|||
temporaryPublicStorage: true
|
||||
# Run 3 times for consistency
|
||||
runs: 3
|
||||
# Configure budgets
|
||||
budgetPath: './tools/lighthouse/budget.json'
|
||||
|
|
|
|||
|
|
@ -3,7 +3,56 @@
|
|||
"collect": {
|
||||
"staticDistDir": "./dist",
|
||||
"numberOfRuns": 3,
|
||||
"url": ["http://localhost/browser/index.html"]
|
||||
"url": ["http://localhost/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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"assert": {
|
||||
"preset": "lighthouse:no-pwa",
|
||||
|
|
|
|||
|
|
@ -1,49 +0,0 @@
|
|||
[
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue