Setting "no open" config variable for Ionic CLI serve command

I want to set a config variable for ionic serve --no-open in the Ionic CLI. It’s not clear how to set a serve config variable in the ionic.config.json though. I’ve looked through the cli documentation and tried the following:

{
  "name": "myApp",
  "app_id": "",
  "type": "ionic-angular",
  "integrations": {
    "cordova": {}
  },
  "no_open": true,
  "noOpen": true,
  "no-open": true,
  "serve": {
    "no_open": true,
    "noOpen": true,
    "no-open": true
  }
}

But when I run ionic serve it still launches a new window. It it possible to configure the serve variables via the config?

I can’t get it working either, so as an alternative I just use npm scripts.

"lab": "ionic serve --lab --no-open"

Then it’ll also be using the projects ionic package, rather than having to install it globally.

See: