阻止 IHP RunDevServer 自动打开窗口或选项卡

发布于 2025-01-11 23:28:20 字数 70 浏览 3 评论 0原文

有没有办法在不自动打开选项卡的情况下启动服务器?类似于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九歌凝 2025-01-18 23:28:20

您可以在运行开发服务器之前将 IHP_BROWSER 环境变量设置为 echo

export IHP_BROWSER=echo
./start

这在 IHP 配方中进行了描述:

https://ihp.digitallyinduced.com/Guide/recipes.html#dont-autoopen-the-app-in-the-browser

You can set the IHP_BROWSER environment variable to echo before running the dev server:

export IHP_BROWSER=echo
./start

This is described in the IHP recipes:

https://ihp.digitallyinduced.com/Guide/recipes.html#dont-autoopen-the-app-in-the-browser

淡写薰衣草的香 2025-01-18 23:28:20

在已接受的答案中添加一点内容。

答案可以在文档中的食谱页面以及其他有用的最佳内容中找到 -练习解决方案。另一种解决方案是将 export IHP_BROWSER=echo 附加到本地 .envrc 文件。

// .envrc
PATH_add /nix/store/...
export IHP_BROWSER=echo

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.

// .envrc
PATH_add /nix/store/...
export IHP_BROWSER=echo
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文