1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-24 05:02:10 +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: assert:
preset: lighthouse:recommended preset: lighthouse:recommended
assertions: assertions:
installable-manifest: "off" # not a PWA
offline-start-url: "off" # not a PWA
performance-budget: "error" performance-budget: "error"
render-blocking-resources: render-blocking-resources:
- warn - warn
@ -31,22 +29,32 @@ ci:
cumulative-layout-shift: cumulative-layout-shift:
- warn - warn
- maxNumericValue: 0 - 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: collect:
method: node method: node
settings: settings:
budgetPath: budget.json budgetPath: budget.json
chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless" chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless"
skipAudits: skipAudits:
- robots-txt # Lighthouse bug: CSP makes this impossible - robots-txt
- canonical # staging site has no rel=canonical - canonical
- is-crawlable # staging site isn't crawlable - is-crawlable
- service-worker # not a PWA - service-worker
- works-offline # not a PWA - works-offline
- installable-manifest # not a PWA - installable-manifest
- splash-screen # not a PWA - splash-screen
- themed-omnibox # not a PWA - themed-omnibox
- offline-start-url # not a pwa - offline-start-url
- offscreen-images # antipattern: see my articlec on best practices for textual websites - offscreen-images
throttling: throttling:
cpuSlowdownMultiplier: 1.2 # seems about right on builds.sr.ht cpuSlowdownMultiplier: 1.2 # seems about right on builds.sr.ht
throttlingMethod: devtools throttlingMethod: devtools