mikestead / lighthouse-batch

Run Lighthouse analysis over multiple sites in a single command
MIT License
156 stars 42 forks source link

feat(budgets): support budget thresholds #58

Closed mikestead closed 3 years ago

mikestead commented 3 years ago

Adding support for budget thresholds for primary metrics.

lighthouse-batch -s https://web.dev \
    --score 92 \
    --seo 95 \
    --pwa 85 \
    --best-practices 90 \
    --accessibility 100 \
    --fail-fast

The --fail-fast option will error as soon as a budget is exceeded and skip pending sites. Otherwise any and all budget errors will be printed once all sites have run, before exiting with code 1.

Fixes #29