Skip to content

Commit 55d7f01

Browse files
committed
fix(@angular/build): simplify disabling server features with --no-server via command line
When `outputMode` is configured, `--prerender` and `--app-shell` become no-ops, making server feature disabling difficult without modifying the configuration. This commit introduces the `--no-server` option, which can be used with `--output-mode static` to fully disable all server features. ``` ng build --output-mode static --no-server ``` (cherry picked from commit d8f926f)
1 parent 06e5176 commit 55d7f01

File tree

1 file changed

+12
-1
lines changed
  • packages/angular/build/src/builders/application

1 file changed

+12
-1
lines changed

packages/angular/build/src/builders/application/schema.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@
1818
},
1919
"server": {
2020
"type": "string",
21-
"description": "The full path for the server entry point to the application, relative to the current workspace."
21+
"description": "The full path for the server entry point to the application, relative to the current workspace.",
22+
"oneOf": [
23+
{
24+
"type": "string",
25+
"description": "The full path for the server entry point to the application, relative to the current workspace."
26+
},
27+
{
28+
"const": false,
29+
"type": "boolean",
30+
"description": "Indicates that a server entry point is not provided."
31+
}
32+
]
2233
},
2334
"polyfills": {
2435
"description": "A list of polyfills to include in the build. Can be a full path for a file, relative to the current workspace or module specifier. Example: 'zone.js'.",

0 commit comments

Comments
 (0)