@wefed/preset-lighthouse
v2.0.7
Published
lighthouse plugin for wefed
Downloads
11
Readme
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 againstview
- immediately open the HTML report in your browseroutput
- 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