Skip to content

Commit c6ca77f

Browse files
clydinvikerman
authored andcommitted
fix(@angular/cli): add browser builder index option longhand form to schema
1 parent 4b0a96c commit c6ca77f

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

packages/angular/cli/lib/config/schema.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,31 @@
847847
"default": false
848848
},
849849
"index": {
850-
"type": "string",
851-
"description": "The name of the index HTML file."
850+
"description": "Configures the generation of the application's HTML index.",
851+
"oneOf": [
852+
{
853+
"type": "string",
854+
"description": "The path of a file to use for the application's HTML index. The filename of the specified path will be used for the generated file and will be created in the root of the application's configured output path."
855+
},
856+
{
857+
"type": "object",
858+
"description": "",
859+
"properties": {
860+
"input": {
861+
"type": "string",
862+
"minLength": 1,
863+
"description": "The path of a file to use for the application's generated HTML index."
864+
},
865+
"output": {
866+
"type": "string",
867+
"minLength": 1,
868+
"default": "index.html",
869+
"description": "The output path of the application's generated HTML index file. The full provided path will be used and will be considered relative to the application's configured output path."
870+
}
871+
},
872+
"required": ["input"]
873+
}
874+
]
852875
},
853876
"statsJson": {
854877
"type": "boolean",

0 commit comments

Comments
 (0)