Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ensure service worker hashes inde…
Browse files Browse the repository at this point in the history
…x HTML file for application builder

The generated HTML files for the application were previously not included in the hash calculations for
the service worker. This has now been corrected and the index file for an application will not be included
when service worker support is enabled via the `serviceWorker` option.

(cherry picked from commit c0db618)
  • Loading branch information
clydin committed Nov 21, 2023
1 parent 73f0e70 commit 8072b85
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export async function executePostBundleSteps(
workspaceRoot,
serviceWorker,
options.baseHref || '/',
outputFiles,
// Ensure additional files recently added are used
[...outputFiles, ...additionalOutputFiles],
assetFiles,
);
additionalOutputFiles.push(
Expand Down

0 comments on commit 8072b85

Please sign in to comment.