addyosmani / webpack-lighthouse-plugin

A Webpack plugin for Lighthouse
Apache License 2.0
289 stars 12 forks source link

Ability to use Headless Chrome? #11

Closed atdiff closed 6 years ago

atdiff commented 6 years ago

Is there a way to use headless chrome with the plugin? If not, it'd be a nice option to have similar to how lighthouse itself allows - https://github.com/GoogleChrome/lighthouse/blob/master/docs/headless-chrome.md#cli-headless

evenstensberg commented 6 years ago

I think you can use all lighthouse flags, { flags: ['headless']}

atdiff commented 6 years ago

@ev1stensberg - Tried this and no luck:

new WebpackLighthousePlugin({
                url: 'http://localhost:8000',
                perf: true,
                flags: ['headless']
})