No description
Find a file
Firq 1b94b8db65
All checks were successful
/ build (push) Successful in 2m55s
/ release (push) Successful in 5s
Bumped Unlghthouse
2024-10-21 22:46:30 +02:00
.forgejo/workflows
.gitignore
Dockerfile
README.md

unlighthouse Docker Image

Image based on node:20.10.0-bookworm with chromium and unlighthouse preinstalled.

It can be used for benchmarking a given site with lighthouse and to generate corresponding reports with ease.

Usage

The unlighthouse cli can be used by running the command unlighthouse inside the container

unlighthouse-ci --site "https://preview.firq.dev/"

It is recommended to provide a unlighthouse.config.ts to reduce the amount of CLI arguments needed.

An example config can be found here:

export default {
    puppeteerOptions: {
        args: ["--no-sandbox", "--disable-setuid-sandbox"],
    },
    ci: {
        budget: 90,
        buildStatic: true
    },
    outputPath: "unlighthouse-reports",
}