question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to pass options do the lighthouse itself?

See original GitHub issue

Today, lighthouse-badges test on top of the default mobile options. In lighthouse cli you can pass the --emulated-form-factor desktop to test against desktop UA.
How I can do this with badges?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
emazzottacommented, Feb 20, 2021

Thanks for the hint!

Since the parameter is directly passed to the lighthouse process, there is no need for any changes to the code from my side.

This will work:

cross-env LIGHTHOUSE_BADGES_PARAMS="--emulated-preset=desktop" npx lighthouse-badges --urls <my-url-here> -r -o ./static/performance/

I updated the README accordingly, however 👍.

1reaction
emazzottacommented, Apr 3, 2020

Hi @AdrianoCahete

Given the inactivity I assume you managed to solve the issue. I’ll close this ticket in ~3 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lighthouse/configuration.md at main - GitHub
Lighthouse Configuration. The Lighthouse config object is the primary method of customizing Lighthouse to suit your use case. Using a custom config, you...
Read more >
An Introduction To Running Lighthouse Programmatically
When running Lighthouse programmatically, there are three places where you can provide custom options: the URL you will be testing, ...
Read more >
Lighthouse - The Official Escape from Tarkov Wiki - Fandom
Lighthouse is the only map to include the Rogues faction. They are guarding a water treatment plant and can also occasionally be found...
Read more >
Processing Lighthouse Reports from the Command Line
Save time and improve the efficiency of your site speed analysis by processing Chrome Lighthouse audits on the command line with our step...
Read more >
Performance monitoring with Lighthouse CI - web.dev
This behavior can be heavily customized by passing additional flags or customizing Lighthouse CI's configuration file, lighthouserc.js .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found