如何设置ionic serve以将Chrome用作默认浏览器? [英] How do I set ionic serve to use Chrome as the default browser?
本文介绍了如何设置ionic serve以将Chrome用作默认浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用谷歌浏览器运行 ionic serve
。
I want to run ionic serve
with Google Chrome.
我试过:
ionic serve --browser chrome
ionic serve --browser google-chrome
但这不起作用。如果我输入,我可以使用firefox:
But that doesn't work. I can get it to use firefox if I type:
ionic serve --browser firefox
如何将 ionic serve
的默认浏览器设置为Chrome?
How do I set the default browser for ionic serve
to Chrome?
推荐答案
在 ionic.project
文件中添加:
"defaultBrowser": ""
或
"defaultBrowser": "chrome"
并尝试离子服务
这是有效的..!
你也可以尝试:
"defaultBrowser": "firefox"
this.. and this.. might be help..
这篇关于如何设置ionic serve以将Chrome用作默认浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文