Skip to content

Multiple app defintions in the angular-cli.json "apps" : [ ] property #4215

@benwinding

Description

@benwinding

Multiple app definitions

I noticed that inside the angular-cli.json file, the "apps": property is defined as an array. Is the following a valid example of the intended use for this property?

angular-cli.json :

{
  "project": {
    "version": "1.0.0-beta.26",
    "name": "example1"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      ...
    }, 
    {
      "root": "src2",
      "outDir": "dist2",
      ...
    }
  ],
  ...
}

I've tested with multiple definitions in the "apps": property. And ng build always builds the first app defintiion.

If all these assumptions are correct, How do you use ng build to compile the second app definition?

Current Config.

angular-cli: 1.0.0-beta.26
node: 6.5.0
os: win32 x64
@angular/common: 2.4.4
@angular/compiler: 2.4.4
@angular/core: 2.4.4
@angular/forms: 2.4.4
@angular/http: 2.4.4
@angular/platform-browser: 2.4.4
@angular/platform-browser-dynamic: 2.4.4
@angular/router: 3.4.4
@angular/compiler-cli: 2.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions