Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use this plugin in desktop mode? #9

Open
BhaskarPhukan opened this issue Apr 12, 2024 · 1 comment
Open

How do I use this plugin in desktop mode? #9

BhaskarPhukan opened this issue Apr 12, 2024 · 1 comment

Comments

@BhaskarPhukan
Copy link

I got an answer here on how to use startFlows in desktop mode. However, I want add a few more things to config like const config = {
extends: 'lighthouse:default',
plugins: ['lighthouse-plugin-soft-navigation'],
} and run them in desktop mode.

can anyone help me out, please?
A sample script would be greatly appreciated
:)

@adamraine
Copy link
Owner

Something like this should work

import {startFlow, desktopConfig} from 'lighthouse';

const flow = await startFlow(page, {
  config: desktopConfig,
  flags: {plugins: ['lighthouse-plugin-soft-navigation']},
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants