-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
To handle different device sizes we have different places to configure them:
- Lighthouse Config
- Puppeteer Browser
Lighthouse Config
const lighthouseConfig: Config = {
extends: 'lighthouse:default',
settings: {
formFactor: 'desktop',
screenEmulation: {
mobile: false,
width: 1350,
height: 940,
deviceScaleFactor: 1,
disabled: false
}
}
}
This setting applies to the browsers window not the viewport.
Puppeteer BrowserOptions
//
const browserOptions: BrowserOptions = {
defaultViewport: {
isMobile: false,
isLandscape: false,
width: 1350,
height: 940,
}
}
This setting applies to the Browsers viewport, not window.
This issue is slightly connected with #142
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working