Skip to content

Commit 8072b85

Browse files
committed
fix(@angular-devkit/build-angular): ensure service worker hashes index 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)
1 parent 73f0e70 commit 8072b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular_devkit/build_angular/src/builders/application/execute-post-bundle.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ export async function executePostBundleSteps(
144144
workspaceRoot,
145145
serviceWorker,
146146
options.baseHref || '/',
147-
outputFiles,
147+
// Ensure additional files recently added are used
148+
[...outputFiles, ...additionalOutputFiles],
148149
assetFiles,
149150
);
150151
additionalOutputFiles.push(

0 commit comments

Comments
 (0)