You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Copy file name to clipboardexpand all lines: packages/angular/build/src/builders/application/schema.json
+12-1
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,18 @@
18
18
},
19
19
"server": {
20
20
"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
+
]
22
33
},
23
34
"polyfills": {
24
35
"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