【问题标题】:How do I tell figwheel to start and connect to Google Chrome instead of Firefox?如何让 figwheel 启动并连接到 Google Chrome 而不是 Firefox?
【发布时间】:2020-06-18 15:57:11
【问题描述】:

我正在与 figwheel 合作。

当我启动tutorial application 时,它会启动 firefox,然后连接回 figwheel 进程以获取在其 JavaScript 引擎上运行的代码。如果 firefox 已经在运行,则会打开一个新选项卡并继续连接。 Figwheel 可能只是使用适当的选项执行firefox command。或者它正在使用xdg-open

系统是带有 KDE 的 Fedora Linux。有趣的是,当前没有配置“默认浏览器”(如何配置默认浏览器在这些KDE help pages 中有描述):根据 URL 内容选择要启动的应用程序。所以我不确定为什么 figwheel 选择 firefox 而不是 Google Chrome,也安装了。

现在,出于测试目的,我有时希望 figwheeel 改用 Google Chrome 进程。有没有办法做到这一点?

好像没有option regarding this

【问题讨论】:

    标签: configuration figwheel


    【解决方案1】:

    您可以使用 figwheel 的 :launch-js 选项来定义应该采取的行动,例如:

    :launch-js ["chrome" "--repl" :open-url]

    【讨论】:

      猜你喜欢
      • 2018-04-09
      • 1970-01-01
      • 2015-02-17
      • 1970-01-01
      • 2019-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多