Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Lighthouse AMP plugin

AMP plugin for Lighthouse.

To run

To run lighthouse in your project, first install lighthouse and lighthouse-plugin-amp as a development dependency:

$ npm install lighthouse lighthouse-plugin-amp -D

Then add a script to your package.json file that will run lighthouse together with the AMP plugin:

  "scripts": {
    "lighthouse": "lighthouse --plugins=lighthouse-plugin-amp --view"

Now you can test your site via:

npm start && npm run lighthouse -- http://localhost:8080 
You can’t perform that action at this time.