1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Fix lighthouse again

This commit is contained in:
Rohan Kumar 2020-12-28 19:00:45 -08:00
parent 35642e698a
commit 39818533a1
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -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