-
Notifications
You must be signed in to change notification settings - Fork 314
/
.lighthouserc.yml
52 lines (52 loc) · 1.41 KB
/
.lighthouserc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
ci:
collect:
numberOfRuns: 3
staticDistDir: exampleSite/public
url:
- http://localhost/
- http://localhost/404.html
- http://localhost/usage/getting-started/
settings:
chromeFlags: "--no-sandbox --headless --disable-dev-shm-usage"
onlyCategories: ["performance", "accessibility", "best-practices", "seo"]
skipAudits:
[
"color-contrast",
"uses-long-cache-ttl",
"csp-xss",
"bf-cache",
"is-crawlable",
"image-size-responsive",
"render-blocking-resources",
"largest-contentful-paint"
]
assert:
preset: "lighthouse:no-pwa"
assertions:
color-contrast: off
uses-long-cache-ttl: off
csp-xss: off
# FIXME: https://github.com/GoogleChrome/lighthouse/issues/14957
bf-cache: off
is-crawlable: off
image-size-responsive: off
render-blocking-resources: off
largest-contentful-paint: off
total-byte-weight: warn
identical-links-same-purpose: warn
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