We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.hot-update.js
1 parent 4dc7cf9 commit bea90a6Copy full SHA for bea90a6
packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.ts
@@ -58,13 +58,16 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator {
58
59
try {
60
for (const [entryName, entrypoint] of this.compilation.entrypoints) {
61
- const entryFiles: FileInfo[] = entrypoint?.getFiles()?.map(
62
- (f: string): FileInfo => ({
63
- name: entryName,
64
- file: f,
65
- extension: extname(f),
66
- }),
67
- );
+ const entryFiles: FileInfo[] = entrypoint
+ ?.getFiles()
+ ?.filter((f) => !f.endsWith('.hot-update.js'))
+ .map(
+ (f: string): FileInfo => ({
+ name: entryName,
+ file: f,
68
+ extension: extname(f),
69
+ }),
70
+ );
71
72
if (!entryFiles) {
73
continue;
0 commit comments