File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/angular_devkit/build_angular/src/app-shell Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,13 @@ export class AppShellBuilder implements Builder<BuildWebpackAppShellSchema> {
168
168
document : indexHtml ,
169
169
url : options . route ,
170
170
} )
171
- . then ( ( html : string ) => {
172
- return this . context . host
171
+ . then ( async ( html : string ) => {
172
+ await this . context . host
173
173
. write ( outputIndexPath , virtualFs . stringToFileBuffer ( html ) )
174
174
. toPromise ( ) ;
175
- } )
176
- . then ( ( ) => {
175
+
177
176
if ( browserOptions . serviceWorker ) {
178
- return augmentAppWithServiceWorker (
177
+ await augmentAppWithServiceWorker (
179
178
this . context . host ,
180
179
root ,
181
180
projectRoot ,
@@ -184,8 +183,9 @@ export class AppShellBuilder implements Builder<BuildWebpackAppShellSchema> {
184
183
browserOptions . ngswConfigPath ,
185
184
) ;
186
185
}
187
- } )
188
- . then ( ( ) => ( { success : true } ) ) ,
186
+
187
+ return { success : true } ;
188
+ } ) ,
189
189
) ;
190
190
} ) ,
191
191
) ;
You can’t perform that action at this time.
0 commit comments