Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): don't add .hot-update.js script…
Browse files Browse the repository at this point in the history
… tags

Closes #20855

(cherry picked from commit bea90a6)
  • Loading branch information
alan-agius4 authored and clydin committed May 21, 2021
1 parent 6482a64 commit 3764a31
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ export class IndexHtmlWebpackPlugin extends IndexHtmlGenerator {

try {
for (const [entryName, entrypoint] of this.compilation.entrypoints) {
const entryFiles: FileInfo[] = entrypoint?.getFiles()?.map(
(f: string): FileInfo => ({
name: entryName,
file: f,
extension: extname(f),
}),
);
const entryFiles: FileInfo[] = entrypoint
?.getFiles()
?.filter((f) => !f.endsWith('.hot-update.js'))
.map(
(f: string): FileInfo => ({
name: entryName,
file: f,
extension: extname(f),
}),
);

if (!entryFiles) {
continue;
Expand Down

0 comments on commit 3764a31

Please sign in to comment.