lighthouse-plugin-ecoindex
v7.3.4
Published
Courses for the Lighthouse plugin that include Ecoindex results.
Maintainers
Readme
Summary of results
lighthouse-plugin-ecoindex
Description
CLI pour lancer des audits Lighthouse avec le plugin Ecoindex et générer des rapports d'impact environnemental.
Details of plugin results
Full documentation and examples
Changelog
Voir le changelog
Installation
npm install -g lighthouse-plugin-ecoindexCommands
collect
Run Lighthouse and save the results to a local folder.
# Demo mode
lighthouse-ecoindex collect --demo
# One or more URLs
lighthouse-ecoindex collect --url https://ecoindex.fr/
lighthouse-ecoindex collect --url https://ecoindex.fr/ --url https://www.ecoindex.fr/a-propos/
# From a structured JSON file (multiple courses)
lighthouse-ecoindex collect --json-file ./input-file.jsonOptions:
| Option | Alias | Description |
| -------------------- | ----- | --------------------------------------------------------------- |
| --url | -u | URL(s) to process |
| --json-file | -j | Path to a structured input file |
| --output | -o | Output format(s): html, json, statement (default: html) |
| --output-path | -p | Output folder (default: ./reports) |
| --lang | | Report language: en or fr (default: en) |
| --extra-header | -h | Extra headers as JSON string or path to a JSON file |
| --puppeteer-script | | Path to a custom Puppeteer script |
| --user-agent | | User agent string (default: random) |
| --demo | -d | Use demo configuration |
convert
Convert JSON report(s) to an Environmental Statement file.
lighthouse-ecoindex convert --input-report ./lh-export-1.json --input-report ./lh-export-2.jsonbrowser-install
Install the Puppeteer browser required by the CLI.
lighthouse-ecoindex browser-installbrowser-check
Check if the Puppeteer browser is installed.
lighthouse-ecoindex browser-check