Skip to content

Commit 36f8cd7

Browse files
alan-agius4alexeagle
authored andcommitted
fix(@schematics/angular): fix path for ngswConfigPath during migration
`/` will cause an error during lookup `Error: Expected to find an `ngsw-config.json` configuration file
1 parent 616ffe7 commit 36f8cd7

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/migrations/update-6

1 file changed

+1
-1
lines changed

packages/schematics/angular/migrations/update-6/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function extractProjectsConfig(
308308
extractLicenses: true,
309309
vendorChunk: false,
310310
buildOptimizer: true,
311-
...(serviceWorker ? {serviceWorker: true, ngswConfigPath: '/src/ngsw-config.json'} : {}),
311+
...(serviceWorker ? {serviceWorker: true, ngswConfigPath: 'src/ngsw-config.json'} : {}),
312312
...(app.budgets ? { budgets: app.budgets as JsonArray} : {}),
313313
};
314314

0 commit comments

Comments
 (0)