hugo-geekblog/.lighthouserc.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-06 20:55:32 +02:00
---
ci:
collect:
2021-06-06 22:32:11 +02:00
numberOfRuns: 3
2020-07-06 20:55:32 +02:00
staticDistDir: exampleSite/public
url:
- http://localhost/
- http://localhost/404.html
- http://localhost/posts/usage/getting-started/
2020-07-06 20:55:32 +02:00
settings:
chromeFlags: "--no-sandbox"
2023-08-25 23:35:44 +02:00
onlyCategories: ['performance', 'accessibility', 'best-practices', 'seo']
skipAudits: ["color-contrast", "uses-long-cache-ttl", "csp-xss", "bf-cache", "is-crawlable", "image-size-responsive"]
2020-07-06 20:55:32 +02:00
assert:
preset: "lighthouse:no-pwa"
assertions:
2023-08-25 23:35:44 +02:00
color-contrast: off
2020-07-06 20:55:32 +02:00
uses-long-cache-ttl: off
csp-xss: off
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
bf-cache: off
2023-08-25 23:35:44 +02:00
is-crawlable: off
image-size-responsive: off
2021-06-06 22:32:11 +02:00
tap-targets: warn
unsized-images: warn
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/11460
categories:performance:
- warn
- minScore: 0.95
categories:accessibility:
- error
- minScore: 1
categories:seo:
- error
- minScore: 0.95
upload:
target: filesystem
outputDir: lhci_reports