Skip to content

r0dneyP3/lighthouse-plugin-feature-policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighthouse Feature policy plugin

Contents

  • audits/sync-xhr.js - new audit catching sync xhr in the webpage.
  • audits/unoptimized-images.js - new audit catching unoptimized images and recommend appropriate feature policy headers to catch them.

To run

  1. Install lighthouse v5 or later.
  2. Git clone the code locally and run npm i to install dev dependencies
  3. Run npm link in the repo, making it available in global node_modules
  4. Run lighthouse https://example.com --plugins=lighthouse-plugin-feature-policy

Example commands

  1. To see actual image audits generated, use
lighthouse https://feature-policy-demos.appspot.com/demos/unoptimized-lossy-images.html?on --plugins=lighthouse-plugin-feature-policy --view

About

Lighthouse Feature Policy Plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published