Skip to content

Commit 35a477e

Browse files
committed
fix(@nguniversal/builders): address service worker generation failures
Closes: angular#2627
1 parent e4ad8a4 commit 35a477e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/builders/src/prerender/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ async function _renderUniversal(
159159
try {
160160
await augmentAppWithServiceWorker(
161161
projectRoot,
162+
context.workspaceRoot,
162163
normalize(outputPath),
163164
browserOptions.baseHref || '/',
164165
browserOptions.ngswConfigPath,

modules/builders/src/static-generator/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ async function generateServiceWorker(
151151

152152
await augmentAppWithServiceWorker(
153153
projectRoot,
154+
context.workspaceRoot,
154155
normalize(outputPath),
155156
browserOptions.baseHref || '/',
156157
browserOptions.ngswConfigPath,

0 commit comments

Comments
 (0)