Skip to content

Commit 59c980e

Browse files
authored
Preserve entry.client.js in prod mode (#5813)
1 parent 477348f commit 59c980e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

reflex/compiler/compiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,10 @@ def purge_web_pages_dir():
621621
return
622622

623623
# Empty out the web pages directory.
624-
utils.empty_dir(get_web_dir() / constants.Dirs.PAGES, keep_files=["routes.js"])
624+
utils.empty_dir(
625+
get_web_dir() / constants.Dirs.PAGES,
626+
keep_files=["routes.js", "entry.client.js"],
627+
)
625628

626629

627630
if TYPE_CHECKING:

0 commit comments

Comments
 (0)