Skip to content

Commit 55c0cd8

Browse files
committed
fix(bazel): clear index file on reload with http_server rule (#2345)
Clear the index html file so that when the chunks are renamed it continues to load as expected. PR Close #2345
1 parent d7ebb42 commit 55c0cd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bazel/http-server/server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ export class HttpServer {
7171

7272
/** Reloads all browsers that currently visit a page from the server. */
7373
reload() {
74+
// Clear the index file cache as the generated script names may change between builds.
75+
this._index = null;
7476
this.server.reload();
7577
}
7678

0 commit comments

Comments
 (0)