Skip to content

Commit 11f817a

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular-devkit/build-angular): use contenthash instead of chunkhash for chunks
See https://github.com/waysact/webpack-subresource-integrity/tree/main/webpack-subresource-integrity#caching and waysact/webpack-subresource-integrity#162 for more information about this. Closes #22439
1 parent a5e375c commit 11f817a

File tree

1 file changed

+2
-2
lines changed
  • packages/angular_devkit/build_angular/src/webpack/utils

1 file changed

+2
-2
lines changed

packages/angular_devkit/build_angular/src/webpack/utils/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export function getOutputHashFormat(option: string, length = 20): HashFormat {
3232
none: { chunk: '', extract: '', file: '', script: '' },
3333
media: { chunk: '', extract: '', file: `.[hash:${length}]`, script: '' },
3434
bundles: {
35-
chunk: `.[chunkhash:${length}]`,
35+
chunk: `.[contenthash:${length}]`,
3636
extract: `.[contenthash:${length}]`,
3737
file: '',
3838
script: `.[hash:${length}]`,
3939
},
4040
all: {
41-
chunk: `.[chunkhash:${length}]`,
41+
chunk: `.[contenthash:${length}]`,
4242
extract: `.[contenthash:${length}]`,
4343
file: `.[hash:${length}]`,
4444
script: `.[hash:${length}]`,

0 commit comments

Comments
 (0)