Adapt lighthouse
This commit is contained in:
parent
f11a53cd11
commit
e402b7e321
3 changed files with 15 additions and 11 deletions
|
@ -12,17 +12,21 @@ export default async (): Promise<UserConfig> => {
|
|||
/* actual config */
|
||||
return {
|
||||
lighthouseOptions: {
|
||||
throttlingMethod: 'devtools',
|
||||
throttlingMethod: 'simulate',
|
||||
throttling: {
|
||||
cpuSlowdownMultiplier: 4,
|
||||
requestLatencyMs: 150,
|
||||
downloadThroughputKbps: 1638.4,
|
||||
uploadThroughputKbps: 1638.4,
|
||||
rttMs: 150,
|
||||
throughputKbps: 1638.4,
|
||||
requestLatencyMs: 562.5, // estimated latency at 150ms RTT
|
||||
downloadThroughputKbps: 1474.56,
|
||||
uploadThroughputKbps: 675,
|
||||
cpuSlowdownMultiplier: 4
|
||||
},
|
||||
screenEmulation: {
|
||||
width: 412,
|
||||
height: 823,
|
||||
deviceScaleFactor: 1.75,
|
||||
mobile: true,
|
||||
width: 360,
|
||||
height: 640,
|
||||
deviceScaleFactor: 2.625,
|
||||
disabled: false
|
||||
},
|
||||
skipAudits: [ 'is-on-https', 'redirects-http', 'uses-http2' ],
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue