ionic serve --all 是如何工作的?

How does ionic serve --all work?

这个命令是如何工作的?

ionic serve --all

我可以从局域网中另一台机器上的浏览器或网络上的任何地方访问该应用程序吗?

命令 ionic serve 在您的机器上创建一个 NodeJS 服务器。这意味着如果您配置好您的路由器,它可以从任何地方访问。

但是,你在哪里看到那个参数--all

我只看到以下内容

serve [options] ...........................  Start a local development server for app dev/testing
  [--consolelogs|-c]  .................  Print app console logs to Ionic CLI
  [--serverlogs|-s]  ..................  Print dev server logs to Ionic CLI
  [--port|-p]  ........................  Dev server HTTP port (8100 default)
  [--livereload-port|-r]  .............  Live Reload port (35729 default)
  [--nobrowser|-b]  ...................  Disable launching a browser
  [--nolivereload|-d]  ................  Do not start live reload
  [--noproxy|-x]  .....................  Do not add proxies
  [--address]  ........................  Use specific address or return with failure
  [--browser|-w]  .....................  Specifies the browser to use (safari, firefox, chrome)
  [--browseroption|-o]  ...............  Specifies a path to open to (/#/tab/dash)
  [--lab|-l]  .........................  Test your apps on multiple screen sizes and platform types