From 370b1380813fc8433ea13b4d4033fda273a7411f Mon Sep 17 00:00:00 2001 From: KronosDev-Pro Date: Thu, 7 Nov 2024 14:36:16 +0000 Subject: [PATCH] fix the copy files in assets to public folder --- reflex/utils/build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reflex/utils/build.py b/reflex/utils/build.py index 119b163d3..deb9ad52a 100644 --- a/reflex/utils/build.py +++ b/reflex/utils/build.py @@ -221,7 +221,11 @@ def setup_frontend( src=str(root / constants.Dirs.APP_ASSETS), dest=str(root / prerequisites.get_web_dir() / constants.Dirs.PUBLIC), ignore=tuple( - f"*.{ext}" for ext in constants.Reflex.STYLESHEETS_SUPPORTED + f"*{p.suffix}" + for ext in constants.Reflex.STYLESHEETS_SUPPORTED + for p in (root / constants.Dirs.APP_ASSETS).glob( + f"**/*.{ext}", case_sensitive=False + ) ), # ignore stylesheet files precompiled in the compiler )