mkdir -p _reports/_scripts/folder in repo root- also do a
mkdir -p _reports/_json/ - add the below files into it
now you're setup for automation.
- run
bash _reports/_scripts/update-artifacts.shrarely. - run
bash _reports/_scripts/refresh-LHRs-from-artifacts.shwhen LHRs change shape
and the real thing:
- run
node _reports/_scripts/generate_report.jsall the time- i have
entrinstalled and so i use this:ls lighthouse-core/report/**/* | entr node _reports/_scripts/generate_report.js- this'll regen the report files everytime a file within report/ is modified.
- i have
- then open up
_report/, select all the .html files, and drag them onto your browser icon. that should open all 10 in diff tabs.
* okay really 5 unique ones. just slightly diff styling for the other 5. ;)