Skip to content

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