-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc.js
33 lines (33 loc) · 1.05 KB
/
lighthouserc.js
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
module.exports = {
ci: {
upload: {
target: 'temporary-public-storage',
},
collect: {
numberOfRuns: 3,
staticDistDir: process.env.CI ? '.' : 'dist/chrislb/browser',
url: [
'http://localhost/',
'http://localhost/404/',
'http://localhost/about/',
'http://localhost/projects/chiasma/',
],
},
assert: {
preset: 'lighthouse:no-pwa',
assertions: {
//👇 Didn't appear til main bundle was >500kb. Then, Lighthouse wants source maps
// If we optimize, we can probably turn this back on. 500kb for main bundle is a bit too much
// ~Now we're below 500kb, enabling it again by leaving it commented in case it's bigger~
'valid-source-maps': 'off',
// 👇 Probably Swiper.js 😭
// Just happens on project detail page tho, when many swipers there
// Maybe a grid would solve it
'non-composited-animations': 'warn',
'bf-cache': 'warn',
'csp-xss': 'warn',
'unused-javascript': 'warn',
},
},
},
}