Lighthouse: Launcher: Export a new option to toggle `disable-extensions`

Created on 24 Jun 2017  路  6Comments  路  Source: GoogleChrome/lighthouse

Nowadays, disable-extensions is a default flag that doesn't allow me have a test for extension app. It might be useful that user can turn on / off the flag vi an option from outside when to test a chrome extension with lighthouse/chrome-launcher. I usually use a chrome while extension testing like this

/Applications/Chromium.app/Contents/MacOS/Chromium --app=file:///chrome-extension/extended/test/index.html --system-developer-mode --load-extensi
on=./test/extension

All 6 comments

No, it doesn't work well. disable-extensions flag might prevent to load extension following flags --load-extension=./test/extension

hah. turns out we predicted this was coming. :)

https://github.com/GoogleChrome/lighthouse/pull/916#issuecomment-310222563

thanks for filing, @ragingwind! (and for creating chrome-launcher-cli!!)

maybe we expose a enableExtensions option on launcher? that seems pretty ok

@paulirish

@ragingwind do you want to try contributing this to launcher? otherwise it's gonna be a little while till we get to this. :)

@paulirish sure. I will make a PR for this

Was this page helpful?
0 / 5 - 0 ratings