Hi,
Feature request summary
I don't use Chrome, but I like to use Lighthouse,
I didn't see any proxy option, so is there any solution for it?
How is this beneficial to Lighthouse?
Lighthouse become usable to people like me!
Thank you!
I'm not sure what you mean exactly by proxy option. Is it just that you want to run Lighthouse without installing Chrome?
If so, you can use PageSpeed Insights or web.dev to get results over the web.
If you meant an HTTP proxy that you want to install Chrome somewhere other than your local machine, you can use --hostname and --port flags of the CLI to specify the address of the remote machine has Chrome running with a debug port.
@patrickhulce by proxy I mean using some sort of VPN, also Chrome is installed on my machine, I just don't use/open it. I like to use Lighthouse cli and I know it needs Chrome.
That flags (hostname and post) are usable here? for my purpose?
Oh, I see now. You mean that you want your local Chrome to use your VPN/proxy settings when navigating to the URL that you give Lighthouse?
You'll want to set Chrome's proxy settings when you start Lighthouse (see Chromium documentation). Example: lighthouse <example url> --chrome-flags='--proxy-server="proxyhost:8080"'
@patrickhulce thanks for the comment, it works great. maybe you should add this to the readme or something.
Most helpful comment
Oh, I see now. You mean that you want your local Chrome to use your VPN/proxy settings when navigating to the URL that you give Lighthouse?
You'll want to set Chrome's proxy settings when you start Lighthouse (see Chromium documentation). Example:
lighthouse <example url> --chrome-flags='--proxy-server="proxyhost:8080"'