Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Advanced web performance optimization best practices

Notifications You must be signed in to change notification settings

jobsort/lighthouse-plugin-performance

Repository files navigation

Lighthouse Performance Plugin

Setup

Please install the dependencies first:

npm install --save-dev lighthouse lighthouse-plugin-performance

Then, please create a configuration file for Lighthouse, such as lighthouse.sample.js. The important part is to add lighthouse-plugin-performance to the plugins array.

// lighthouse.sample.js
module.exports = {
  extends: "lighthouse:default",
  plugins: [
    "lighthouse-plugin-performance",
  ],
};

Use

To see a report, simply run the following command:

npx lighthouse --config-path lighthouse.sample.js https://jobsort.com --view

About

Advanced web performance optimization best practices

Topics

Resources

Stars

Watchers

Forks