addyosmani / addyosmani/webpack-lighthouse-plugin

support for chrome launcher options

Aperta
#19 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
294
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

there is the need to [configure webpack dev-server to use https][1] in order to work with [service worker][2]. 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`][3] which is utilised by [lighthouse][4].

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)?

[1]: https://webpack.js.org/configuration/dev-server/#devserverhttps
[2]: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#Setting_up_to_play_with_service_workers
[3]: https://github.com/GoogleChrome/chrome-launcher#launchopts
[4]: https://github.com/GoogleChrome/lighthouse/blob/master/docs/readme.md#using-programmatically

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.