We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd2d5c commit 9b5cfaaCopy full SHA for 9b5cfaa
packages/angular/build/src/builders/application/chunk-optimizer.ts
@@ -103,10 +103,7 @@ export async function optimizeChunks(
103
const result = await bundle.generate({
104
compact: true,
105
sourcemap,
106
- chunkFileNames(chunkInfo) {
107
- // Do not add hash to file name if already present
108
- return /-[a-zA-Z0-9]{8}$/.test(chunkInfo.name) ? '[name].js' : '[name]-[hash].js';
109
- },
+ chunkFileNames: (chunkInfo) => `${chunkInfo.name.replace(/-[a-zA-Z0-9]{8}$/, '')}-[hash].js`,
110
});
111
optimizedOutput = result.output;
112
} catch (e) {
0 commit comments