Skip to content

Commit

Permalink
Merge pull request #55 from hackerspace-ntnu/lighthouse-config
Browse files Browse the repository at this point in the history
build: Restructure lhci config, ignore some rules for storage pages
  • Loading branch information
ZeroWave022 authored Sep 28, 2024
2 parents cf9d93b + e21d821 commit 0efd907
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions lighthouserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,36 @@ ci:
upload:
target: 'temporary-public-storage'
assert:
preset: 'lighthouse:recommended'
assertions:
first-contentful-paint:
- error
- maxNumericValue: 2000
aggregationMethod: optimistic
interactive:
- error
- maxNumericValue: 5000
aggregationMethod: optimistic
bf-cache: 'off'
csp-xss: 'off'
identical-links-same-purpose: 'off'
total-byte-weight: 'off'
color-contrast: 'off'
heading-order: 'off'
mainthread-work-breakdown: 'off'
bootup-time: 'off'
largest-contentful-paint: 'off'
dom-size: 'off'
render-blocking-resources: 'off'
server-response-time: 'off'
uses-responsive-images: 'off'
maskable-icon: 'off'
installable-manifest: 'off'
assertMatrix:
- matchingUrlPattern: ".*"
preset: 'lighthouse:recommended'
assertions:
first-contentful-paint:
- error
- maxNumericValue: 2000
aggregationMethod: optimistic
interactive:
- error
- maxNumericValue: 5000
aggregationMethod: optimistic
bf-cache: 'off'
csp-xss: 'off'
identical-links-same-purpose: 'off'
total-byte-weight: 'off'
color-contrast: 'off'
heading-order: 'off'
mainthread-work-breakdown: 'off'
bootup-time: 'off'
largest-contentful-paint: 'off'
dom-size: 'off'
render-blocking-resources: 'off'
server-response-time: 'off'
uses-responsive-images: 'off'
maskable-icon: 'off'
installable-manifest: 'off'
- matchingUrlPattern: "http://[^/]+/storage.*"
preset: 'lighthouse:recommended'
assertions:
unused-javascript: 'off'
cumulative-layout-shift: 'off'
max-potential-fid: 'off'

0 comments on commit 0efd907

Please sign in to comment.