Skip to content

Commit

Permalink
fix: adds config files
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin committed Apr 30, 2020
1 parent 25b40f6 commit a0fc02c
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/lighthouse/budget.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"path": "/*",
"resourceSizes": [
{
"resourceType": "script",
"budget": 500
},
{
"resourceType": "stylesheet",
"budget": 120
},
{
"resourceType": "font",
"budget": 306
},
{
"resourceType": "image",
"budget": 50
},
{
"resourceType": "third-party",
"budget": 200
},
{
"resourceType": "document",
"budget": 180
},
{
"resourceType": "other",
"budget": 100
},
{
"resourceType": "total",
"budget": 650
}
],
"timings": [
{
"metric": "interactive",
"budget": 5000
},
{
"metric": "first-meaningful-paint",
"budget": 2000
}
]
}
]

10 changes: 10 additions & 0 deletions .github/lighthouse/lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ci": {
"assert": {
"preset": "lighthouse:recommended",
"assertions": {
"first-contentful-paint": ["warn", { "minScore": 0.6 }]
}
}
}
}

0 comments on commit a0fc02c

Please sign in to comment.