Socket
Book a DemoInstallSign in
Socket

@dreipol/lighthouse-config

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreipol/lighthouse-config

Basic lighthouse config

0.1.0
Source
npmnpm
Version published
Weekly downloads
45
1025%
Maintainers
4
Weekly downloads
 
Created
Source

@dreipol/lighthouse-config

Basic configuration files for the lighthouse reporting

Usage

const config = require('@dreipol/lighthouse-config/config/<ENV>/<DEVICE>');
  • ENV can either be local or production
  • DEVICE can either be desktop or mobile

Extend from the base config

You can extend the base configuration with your own configuration. This is done by creating a new config file in your project and include the base config via require. Then you can edit the Object the way you want

Example for local mobile config:

let mobileConfig = require('@dreipol/lighthouse-config/config/local/desktop');

mobileConfig.chromeFlags = ['--window-size=320,480'];
mobileConfig.disableEmulation = false;
mobileConfig.disableThrottling = false;

module.exports = mobileConfig;

Structure

fieldtypedefaultvalue
urlstringlocal:http://localhsot:8000 production:https://example.comwhere all the reports are run
pathsArray[/]Array of url paths. All these routes are tested and reported
chromeFlagsArray['--window-size=1200,800']Array of additional chrome flags. See all
folderstring../reportsDefine location to store the reports
disableEmulationbooleantrueApplay device emulation
disableThrottlingbooleantrueDisable Network and CPU throttling
saveReportbooleantrueSave report as json file for further inspections
reportObjectLighthouse report configurations. See exmaples

FAQs

Package last updated on 13 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.