Skip to content

Commit f33d10d

Browse files
alan-agius4clydin
authored andcommitted
refactor(@angular-devkit/build-angular): deprecate a number of dev-server options
With this change we deprecate a number of dev-server builder options which proxied to the browser builder. This pattern also wrongly assumes that 3rd party browser builders also support all these options. Configure the below deprecated options directly in the browser builder target options instead. - aot - sourceMap - deployurl - baseHref - vendorChunk - commonChunk - optimization - progress
1 parent 6d7f038 commit f33d10d

File tree

1 file changed

+20
-10
lines changed
  • packages/angular_devkit/build_angular/src/dev-server

1 file changed

+20
-10
lines changed

packages/angular_devkit/build_angular/src/dev-server/schema.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@
8585
"hmrWarning": {
8686
"type": "boolean",
8787
"description": "Show a warning when the --hmr option is enabled.",
88-
"default": true
88+
"default": true,
89+
"x-deprecated": "No longer has an effect."
8990
},
9091
"servePathDefaultWarning": {
9192
"type": "boolean",
9293
"description": "Show a warning when deploy-url/base-href use unsupported serve path values.",
93-
"default": true
94+
"default": true,
95+
"x-deprecated": "No longer has an effect."
9496
},
9597
"optimization": {
9698
"description": "Enables optimization of the build output.",
@@ -115,12 +117,14 @@
115117
{
116118
"type": "boolean"
117119
}
118-
]
120+
],
121+
"x-deprecated": "Use the \"optimization\" option in the browser builder instead."
119122
},
120123
"aot": {
121124
"type": "boolean",
122125
"description": "Build using Ahead of Time compilation.",
123-
"x-user-analytics": 13
126+
"x-user-analytics": 13,
127+
"x-deprecated": "Use the \"aot\" option in the browser builder instead."
124128
},
125129
"sourceMap": {
126130
"description": "Output sourcemaps.",
@@ -154,27 +158,33 @@
154158
{
155159
"type": "boolean"
156160
}
157-
]
161+
],
162+
"x-deprecated": "Use the \"sourceMap\" option in the browser builder instead."
158163
},
159164
"vendorChunk": {
160165
"type": "boolean",
161-
"description": "Use a separate bundle containing only vendor libraries."
166+
"description": "Use a separate bundle containing only vendor libraries.",
167+
"x-deprecated": "Use the \"vendorChunk\" option in the browser builder instead."
162168
},
163169
"commonChunk": {
164170
"type": "boolean",
165-
"description": "Use a separate bundle containing code used across multiple bundles."
171+
"description": "Use a separate bundle containing code used across multiple bundles.",
172+
"x-deprecated": "Use the \"commonChunk\" option in the browser builder instead."
166173
},
167174
"baseHref": {
168175
"type": "string",
169-
"description": "Base url for the application being built."
176+
"description": "Base url for the application being built.",
177+
"x-deprecated": "Use the \"baseHref\" option in the browser builder instead."
170178
},
171179
"deployUrl": {
172180
"type": "string",
173-
"description": "URL where files will be deployed."
181+
"description": "URL where files will be deployed.",
182+
"x-deprecated": "Use the \"deployUrl\" option in the browser builder instead."
174183
},
175184
"progress": {
176185
"type": "boolean",
177-
"description": "Log progress to the console while building."
186+
"description": "Log progress to the console while building.",
187+
"x-deprecated": "Use the \"progress\" option in the browser builder instead."
178188
},
179189
"poll": {
180190
"type": "number",

0 commit comments

Comments
 (0)