npm

lightit

1.6.1 • Public • Published

Description

Lighthouse

Goal

This is only a wrap from lighthouse to be easy to customize parameters.

CI

If you want to know how to put it on CI: lightit-ci

SETUP

Threshold

{
    "performance": 100,
    "pwa": 60,
    "accessibility": 55,
    "best-practices": 90,
    "seo": 45
}

Config

{
    "extends": "lighthouse:full",
    "settings": {
        "onlyCategories": ["performance", "accessibility", "best-practices", "seo", "pwa"],
        "budgets": [{
        "resourceCounts": [
            {"resourceType": "third-party", "budget": 0}
        ],
        "resourceSizes": [
            {"resourceType": "total", "budget": 100},
            {"resourceType": "script", "budget": 30}
        ]
        }]
    }
}

INSTALL

npm install -g lightit

RUN

Considering that the Options and Threshold files exist, execute the following command:

lightit --url=https://google.com

Other options

Change threshold (required)

lightit --url=https://google.com --th=threshold.json

Add config option (optional)

lightit --url=https://google.com --config=config.json

Final result

Results

Readme

Keywords

none

Package Sidebar

Install

npm i lightit

Weekly Downloads

3

Version

1.6.1

License

ISC

Unpacked Size

9.71 kB

Total Files

7

Last publish

Collaborators

  • manajaras