Skip to content

Commit 890cfbe

Browse files
hanslvikerman
authored andcommitted
fix(@angular-devkit/build-angular): fail the build if service worker fails
Its the sensible thing to do.
1 parent 15312e8 commit 890cfbe

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/browser

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/browser/index2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export function buildWebpackBrowser(
279279
resolve(root, normalize(options.outputPath)),
280280
options.baseHref || '/',
281281
options.ngswConfigPath,
282-
).then(() => ({ success: true })));
282+
).then(() => ({ success: true }), () => ({ success: false })));
283283
} else {
284284
return of(buildEvent);
285285
}

0 commit comments

Comments
 (0)