mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Fix lighthouse again
This commit is contained in:
parent
35642e698a
commit
39818533a1
1 changed files with 20 additions and 12 deletions
|
@ -3,8 +3,6 @@ ci:
|
|||
assert:
|
||||
preset: lighthouse:recommended
|
||||
assertions:
|
||||
installable-manifest: "off" # not a PWA
|
||||
offline-start-url: "off" # not a PWA
|
||||
performance-budget: "error"
|
||||
render-blocking-resources:
|
||||
- warn
|
||||
|
@ -31,22 +29,32 @@ ci:
|
|||
cumulative-layout-shift:
|
||||
- warn
|
||||
- maxNumericValue: 0
|
||||
robots-txt: "off" # Lighthouse bug: CSP makes this impossible
|
||||
canonical: "off" # staging site has no rel=canonical
|
||||
is-crawlable: "off" # staging site isn't crawlable
|
||||
service-worker: "off" # not a PWA
|
||||
works-offline: "off" # not a PWA
|
||||
installable-manifest: "off" # not a PWA
|
||||
splash-screen: "off" # not a PWA
|
||||
themed-omnibox: "off" # not a PWA
|
||||
offline-start-url: "off" # not a pwa
|
||||
offscreen-images: "off" # antipattern: see my article on best practices for textual websites
|
||||
collect:
|
||||
method: node
|
||||
settings:
|
||||
budgetPath: budget.json
|
||||
chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless"
|
||||
skipAudits:
|
||||
- robots-txt # Lighthouse bug: CSP makes this impossible
|
||||
- canonical # staging site has no rel=canonical
|
||||
- is-crawlable # staging site isn't crawlable
|
||||
- service-worker # not a PWA
|
||||
- works-offline # not a PWA
|
||||
- installable-manifest # not a PWA
|
||||
- splash-screen # not a PWA
|
||||
- themed-omnibox # not a PWA
|
||||
- offline-start-url # not a pwa
|
||||
- offscreen-images # antipattern: see my articlec on best practices for textual websites
|
||||
- robots-txt
|
||||
- canonical
|
||||
- is-crawlable
|
||||
- service-worker
|
||||
- works-offline
|
||||
- installable-manifest
|
||||
- splash-screen
|
||||
- themed-omnibox
|
||||
- offline-start-url
|
||||
- offscreen-images
|
||||
throttling:
|
||||
cpuSlowdownMultiplier: 1.2 # seems about right on builds.sr.ht
|
||||
throttlingMethod: devtools
|
||||
|
|
Loading…
Reference in a new issue