configuration - How do I tell figwheel to start and connect to Google Chrome instead of Firefox?
问题描述
I'm taking some baby steps with figwheel.
When I fire up the tutorial application, it starts firefox, which then connects back to the figwheel process to get code to run on its JavaScript engine. If firefox is already running, a new tab is opened and the connection proceeds likewise. Figwheel probably just executes the firefox
command with appropriate options. Or maybe it is using xdg-open.
The system is a Fedora Linux with KDE. Interestingly a "default browser" is not currently configured (how to configure the default browser is described in these KDE help pages): the application to start is selected based on URL contents. So I am not sure why figwheel selects firefox instead of Google Chrome, also installed.
Now, for testing purposes I sometimes want figwheeel
to use a Google Chrome
process instead. Is there a way to do that?
There seems to be no option regarding this.
解决方案
您可以使用 figwheel 的:launch-js选项来定义应采取的操作,例如:
:launch-js ["chrome" "--repl" :open-url]
推荐阅读
- java - 在Java中,当我在TextArea中使用多线程时,有一个问题
- css - 将 vuetify 样式提取到 css 文件
- javascript - XMLHTTPRequest onreadystatechange readyState 总是 1?
- php - 如何正确映射对象数组
- javascript - 如何
使用 Javascript Excel API 用换行符替换 XML - c# - Uri uri = new Uri ("psCom;component/Resources/Images.xaml", UriKind.Relative); 使用旧版本的 Images.xaml
- function - 如何在 React 函数组件(useState 挂钩)中访问 ag-Grid API?
- spring - 如何使用 Spring RestController 生成和使用 RabbitMQ 消息并将其发送回用户
- html - 光滑的轮播(下一个/上一个按钮放置)
- oracle - 带有自定义事件“beforeunload”的 Oracle Apex 4.2 动态操作不起作用