how to run lighthouse-puppeteer in Desktop mode? #13789
-
Summary detailed I want to run at Desktop. Where do I revise the code? I try to do my best to find a solution, but I couldn't. So Please share your solution. Thanks. my test code is same with sample code :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Lighthouse applies its own emulation settings to the page regardless of the environment you set up with puppeteer beforehand. To get Lighthouse to use desktop emulation, you can use the Lighthouse desktop config: const desktopConfig = require('lighthouse/lighthouse-core/config/desktop-config.js');
const {lhr} = await lighthouse(url, flags, desktopConfig); |
Beta Was this translation helpful? Give feedback.
Lighthouse applies its own emulation settings to the page regardless of the environment you set up with puppeteer beforehand. To get Lighthouse to use desktop emulation, you can use the Lighthouse desktop config: