.lighthouserc.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. ci:
  3. collect:
  4. numberOfRuns: 3
  5. staticDistDir: exampleSite/public
  6. url:
  7. - http://localhost/
  8. - http://localhost/404.html
  9. - http://localhost/usage/getting-started/
  10. settings:
  11. chromeFlags: "--no-sandbox --headless --disable-dev-shm-usage"
  12. onlyCategories: ["performance", "accessibility", "best-practices", "seo"]
  13. skipAudits:
  14. [
  15. "color-contrast",
  16. "uses-long-cache-ttl",
  17. "csp-xss",
  18. "bf-cache",
  19. "is-crawlable",
  20. "image-size-responsive",
  21. "render-blocking-resources",
  22. "largest-contentful-paint"
  23. ]
  24. assert:
  25. preset: "lighthouse:no-pwa"
  26. assertions:
  27. color-contrast: off
  28. uses-long-cache-ttl: off
  29. csp-xss: off
  30. # FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
  31. bf-cache: off
  32. is-crawlable: off
  33. image-size-responsive: off
  34. render-blocking-resources: off
  35. largest-contentful-paint: off
  36. total-byte-weight: warn
  37. identical-links-same-purpose: warn
  38. tap-targets: warn
  39. unsized-images: warn
  40. # FIXME: https://github.com/GoogleChrome/lighthouse/issues/11460
  41. categories:performance:
  42. - warn
  43. - minScore: 0.95
  44. categories:accessibility:
  45. - error
  46. - minScore: 1
  47. categories:seo:
  48. - error
  49. - minScore: 0.95
  50. upload:
  51. target: filesystem
  52. outputDir: lhci_reports