LightWallet is available in the command line version of Lighthouse v5+.
To get started, install Lighthouse:
npm install -g lighthouse
Create a Budget
Create a file named
budget.json. In this file add the following JSON:
budget.json file sets three separate budgets:
- A budget of 300 KB for the overall size of the page.
- A budget of 10 requests for the numer of requests made to third-party origins.
You can set budgets for any of the following resource types:
Run Lighthouse using the
--budget-path flag. This flag tells Lighthouse the location of your budget file.
lighthouse https://example.com --budget-path=./budget.json
Note: A budget file does not have to be named
View the Results
If LightWallet has been configured correctly, the Lighthouse report will contain a Budgets section within the Performance category.
In the JSON version of the Lighthouse report, Lightwallet results can be found within the audit findings for the