2.0.7 • Published 6 years ago

@wefed/preset-lighthouse v2.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

preset-lighthouse

This plugin allows you to run Lighthouse from a Webpack build.

Setup

In wefed.config.js:

module.exports = {
  ...
  presets: [
    ['@wefed/preset-lighthouse', {
      lighthouseConfig: {
        // url: '/dist/publish/web/index.html',
        url: ['/dist/publish/web/index.html', '/dist/publish/web/home.html'],
        view: true
      }
    }]
  ]
  ...
}

API

  • url - the URL to run Lighthouse audits against
  • view - immediately open the HTML report in your browser
  • output - Reporter for the results (json/html, html by default)
  • saveAssets - save the trace contents & screenshots to disk (false by default)

Running lighthouse with build commander

  • wefed build -l
2.0.7

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago