Вопрос

Is there a way to pass flags / command line switches to the browser being used with DalekJS?

Esentially, I want to use Chrome with some experimental features turned on: http://peter.sh/experiments/chromium-command-line-switches/

Vanilla CLI startup of custom Chrome looks like:

open -a Google\ Chrome --args --enable-experimental-web-platform-features

How can I feed those args to Dalek's instance of Chrome?

Это было полезно?

Решение

This hasn't made it into the official docs yet, but I recently merged a pull request that allows you exactly that:

See https://github.com/dalekjs/dalek-browser-chrome/pull/8 for more details. You can add the instructions to your Dalekfile.json like so:

{
    "browsers": [{
        "chrome": {
            "chromeOptions": {
                "args": ["enable-experimental-web-platform-features", "js-flags=--harmony"]
            }
        }
    }]
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top