File tree 2 files changed +20
-0
lines changed
packages/angular_devkit/build_angular/src/builders
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,16 @@ async function _appShellBuilder(
178
178
serviceWorker : false ,
179
179
optimization : optimization as unknown as JsonObject ,
180
180
} ) ;
181
+
182
+ if ( browserTargetRun . info . builderName === '@angular-devkit/build-angular:application' ) {
183
+ return {
184
+ success : false ,
185
+ error :
186
+ '"@angular-devkit/build-angular:application" has built-in app-shell generation capabilities. ' +
187
+ 'The "appShell" option should be used instead.' ,
188
+ } ;
189
+ }
190
+
181
191
const serverTargetRun = await context . scheduleTarget ( serverTarget , {
182
192
watch : false ,
183
193
} ) ;
Original file line number Diff line number Diff line change @@ -106,6 +106,16 @@ async function _scheduleBuilds(
106
106
serviceWorker : false ,
107
107
// todo: handle service worker augmentation
108
108
} ) ;
109
+
110
+ if ( browserTargetRun . info . builderName === '@angular-devkit/build-angular:application' ) {
111
+ return {
112
+ success : false ,
113
+ error :
114
+ '"@angular-devkit/build-angular:application" has built-in prerendering capabilities. ' +
115
+ 'The "prerender" option should be used instead.' ,
116
+ } ;
117
+ }
118
+
109
119
const serverTargetRun = await context . scheduleTarget ( serverTarget , {
110
120
watch : false ,
111
121
} ) ;
You can’t perform that action at this time.
0 commit comments