Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 720 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 720 Bytes

wackylighthouse

Simulate Lighthouse responses for testing

Usage

Request the page you need.

For example, to test a valid response:

npx lighthouse https://wackylighthouse.com

To test a response with no FCP:

npx lighthouse https://wackylighthouse.com/no-fcp.html

You can even run it through Pagespeed Insights:

curl https://www.googleapis.com/pagespeedonline/v5/runPagespeed\?url\=https://wackylighthouse.com

Development

Run the server

Start a local server, because Lighthouse can only run on HTTP/HTTPS.

go run cmd/main.go

Run Lighthouse

npx lighthouse http://localhost:8080

Production

Serve the ./static directory.