2

有没有办法将标志/命令行开关传递给与 DalekJS 一起使用的浏览器?

本质上,我想使用 Chrome 并打开一些实验性功能:http: //peter.sh/experiments/chromium-command-line-switches/

自定义 Chrome 的 Vanilla CLI 启动如下所示:

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

如何将这些参数提供给 Dalek 的 Chrome 实例?

4

1 回答 1

1

这还没有进入官方文档,但我最近合并了一个拉取请求,它允许你这样做:

有关更多详细信息,请参阅https://github.com/dalekjs/dalek-browser-chrome/pull/8。您可以Dalekfile.json像这样添加说明:

{
    "browsers": [{
        "chrome": {
            "chromeOptions": {
                "args": ["enable-experimental-web-platform-features", "js-flags=--harmony"]
            }
        }
    }]
}
于 2014-03-06T10:48:53.040 回答