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

Add docs for reasonable configuration of lighthouse config #214

Open
3 tasks
ChristopherPHolder opened this issue Feb 9, 2023 · 0 comments
Open
3 tasks
Labels
documentation Improvements or additions to documentation

Comments

@ChristopherPHolder
Copy link
Collaborator

ChristopherPHolder commented Feb 9, 2023

Configurations can be defined in different levels. This issue should give examples and explain them.
Configurations can be enriched or reduced or changed.

LH Configuration

  • Define an example for a global LH configuration
    {
      "settings": {
        "onlyCategories": ["performance"]
      } 
    }
    This would only run audits of the performance category in every flow and in each flow in each step
  • Define and example for a flow LH based configuration
    {
     "settings": {
       "formFactor": "desktop",
       "throttling": "constants.throttling.desktopDense4G",
       "screenEmulation": "constants.screenEmulationMetrics.desktop",
       "emulatedUserAgent": "constants.userAgents.desktop",
     }
    }
    This will run only one specific audit for a flow.
  • Define an example for a step LH based configuration
    {
     "settings": {
        "skipAudits": ["full-page-screenshot"],
     } 
    }

LH Budget

  • Define an example for a global LH budget
  • Define and example for a flow LH budget
  • Define an example for a step LH budget
@BioPhoton BioPhoton changed the title Add docs for with reasonable configuration of lighthouse config Add docs for reasonable configuration of lighthouse config Apr 3, 2023
@BioPhoton BioPhoton added the documentation Improvements or additions to documentation label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants