Skip to content

Commit

Permalink
fix(@nguniversal/builders): address service worker generation failures
Browse files Browse the repository at this point in the history
Closes: #2627
(cherry picked from commit 63a48d7)
  • Loading branch information
alan-agius4 committed May 3, 2022
1 parent 604da42 commit 4762906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/builders/src/prerender/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ async function _renderUniversal(
try {
await augmentAppWithServiceWorker(
projectRoot,
context.workspaceRoot,
normalize(outputPath),
browserOptions.baseHref || '/',
browserOptions.ngswConfigPath,
Expand Down
1 change: 1 addition & 0 deletions modules/builders/src/static-generator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ async function generateServiceWorker(

await augmentAppWithServiceWorker(
projectRoot,
context.workspaceRoot,
normalize(outputPath),
browserOptions.baseHref || '/',
browserOptions.ngswConfigPath,
Expand Down

0 comments on commit 4762906

Please sign in to comment.