forked from YACS-RCOS/yacs.n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc.js
30 lines (30 loc) · 1007 Bytes
/
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
module.exports = {
ci: {
collect: {
url: ['https://localhost'],
settings: {
chromeFlags: ['--ignore-certificate-errors'],
// --- comment the formFactor and screenEmulation to test for mobile ---
formFactor: 'desktop',
screenEmulation: {
mobile: false,
width: 1920,
height: 1080,
deviceScaleFactor: 1,
disabled: false,
}
}
},
assert:{
assertions: {
'categories:performance': ['warn', { 'minScore': 0.8 }],
'categories:accessibility': ['warn', { 'minScore': 0.8 }],
'categories:best-practices': ['error', { 'minScore': 1.0 }],
'categories:seo': ['warn', { 'minScore': 1.0 }],
}
},
upload: {
target: 'temporary-public-storage'
}
}
}