addyosmani / webpack-lighthouse-plugin

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

support for chrome launcher options #19

Open electriquo opened 5 years ago

electriquo commented 5 years ago

there is the need to configure webpack dev-server to use https in order to work with service worker. webpack dev-server can be configured to serve self-signed certificate. as a result, chromium needs to launched with --ignore-certificate-errors and --unsafely-treat-insecure-origin-as-secure=https://localhost:8080 arguments, but there is no straightforward way to provide chromium arguments to lighthouse-plugin.

chrome-launcher options supports chromeFlags which is utilised by lighthouse.

  1. is there any way to provide the arguments for chrome-launcher?
  2. is there any way to control the plugin execution only when the webpack dev-server kicks in and not for webpack in general (for instance, not to run when only bundeling takes place)?
electriquo commented 4 years ago

anyone?