Adapt lighthouse
This commit is contained in:
parent
f11a53cd11
commit
e402b7e321
3 changed files with 15 additions and 11 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@firq/fgosite",
|
||||
"version": "0.2.0-pre.104",
|
||||
"version": "0.2.0-pre.105",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@firq/fgosite",
|
||||
"version": "0.2.0-pre.104",
|
||||
"version": "0.2.0-pre.105",
|
||||
"dependencies": {
|
||||
"@astro-community/astro-embed-youtube": "^0.5.6",
|
||||
"@astrojs/check": "^0.9.4",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@firq/fgosite",
|
||||
"type": "module",
|
||||
"version": "0.2.0-pre.104",
|
||||
"version": "0.2.0-pre.105",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
|
|
|
@ -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
Reference in a new issue