阻止 IHP RunDevServer 自动打开窗口或选项卡
有没有办法在不自动打开选项卡的情况下启动服务器?类似于 webpackserve --no-open
Is there a way to start the server without it automatically opening a tab? Something similar to webpack serve --no-open
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在运行开发服务器之前将
IHP_BROWSER
环境变量设置为echo
:这在 IHP 配方中进行了描述:
https://ihp.digitallyinduced.com/Guide/recipes.html#dont-autoopen-the-app-in-the-browser
You can set the
IHP_BROWSER
environment variable toecho
before running the dev server:This is described in the IHP recipes:
https://ihp.digitallyinduced.com/Guide/recipes.html#dont-autoopen-the-app-in-the-browser
在已接受的答案中添加一点内容。
答案可以在文档中的食谱页面以及其他有用的最佳内容中找到 -练习解决方案。另一种解决方案是将
export IHP_BROWSER=echo
附加到本地.envrc
文件。Adding a little more to the accepted answer.
The answer can be found on the Recipes page in the Documentation along with other helpful best-practice solutions. Another solution is to append
export IHP_BROWSER=echo
to the local.envrc
file.