~seirdy/seirdy.one

seirdy.one/.lighthouserc.yml -rw-r--r-- 2.0 KiB
d6b40e2fRohan Kumar Search engines: remove dupe entry 9 days ago
                                                                                
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
53
54
55
56
57
58
59
60
61
62
63
64
65
---
ci:
  assert:
    preset: lighthouse:recommended
    assertions:
      performance-budget: "error"
      render-blocking-resources:
        - warn
        # the CSS file.
        # My site doesn't use JS so it doesn't use the recommended async hack
        - maxLength: 1
      timing-budget: "off"  # buggy; manually use the below assertions instead
      # https://seirdy.one/2020/11/23/website-best-practices.html#about-lazy-loading
      speed-index:
        - warn
        - maxNumericValue: 2000
      largest-contentful-paint:
        - warn
        - maxNumericValue: 2000
      first-contentful-paint:
        - warn
        - maxNumericValue: 2000
      first-meaningful-paint:
        - warn
        - maxNumericValue: 2000
      total-blocking-time:
        - warn
        - maxNumericValue: 0
      cumulative-layout-shift:
        - warn
        - maxNumericValue: 0
      canonical: "off"  # staging site has no rel=canonical
      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:
        - canonical
        - service-worker
        - works-offline
        - installable-manifest
        - splash-screen
        - themed-omnibox
        - offline-start-url
        - offscreen-images
      throttling:
        cpuSlowdownMultiplier: 1
      throttlingMethod: devtools
    url:
      - https://seirdy.one/
      - https://seirdy.one/about.html
      - https://seirdy.one/2020/11/23/website-best-practices.html
    numberOfRuns: 3
  upload:
    outputDir: lighthouse-reports
    reportFilenamePattern: lighthouse-report-%%PATHNAME%%.%%EXTENSION%%
    target: filesystem