forked from bigcommerce/cornerstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouse-config.js
46 lines (45 loc) · 1.14 KB
/
lighthouse-config.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
34
35
36
37
38
39
40
41
42
43
44
45
46
const throttling = {
disabled: {
rttMs: 0,
throughputKbps: 0,
requestLatencyMs: 0,
downloadThroughputKbps: 0,
uploadThroughputKbps: 0,
cpuSlowdownMultiplier: 0,
}
};
module.exports = {
settings: {
output: 'json',
maxWaitForLoad: 45 * 1000,
throttlingMethod: 'provided',
throttling: throttling.disabled,
auditMode: false,
gatherMode: false,
disableStorageReset: false,
disableDeviceEmulation: true,
emulatedFormFactor: 'none',
blockedUrlPatterns: null,
additionalTraceCategories: null,
extraHeaders: null,
onlyAudits: null,
onlyCategories: null,
skipAudits: null,
},
passes: [
{
passName: 'defaultPass',
recordTrace: true,
useThrottling: false,
pauseAfterLoadMs: 1000,
networkQuietThresholdMs: 1000,
cpuQuietThresholdMs: 1000,
gatherers: [],
},
],
audits: [
'time-to-first-byte',
'metrics/first-meaningful-paint',
'metrics/interactive',
],
};