From 0223081d496c2dc1ccb5684171473c1fc08f2842 Mon Sep 17 00:00:00 2001 From: KronosDev-Pro Date: Mon, 11 Nov 2024 23:35:42 +0000 Subject: [PATCH] remove useless path search --- reflex/utils/build.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/reflex/utils/build.py b/reflex/utils/build.py index deb9ad52a..26ee62616 100644 --- a/reflex/utils/build.py +++ b/reflex/utils/build.py @@ -215,18 +215,10 @@ def setup_frontend( """ # Create the assets dir if it doesn't exist. path_ops.mkdir(constants.Dirs.APP_ASSETS) - - # Copy asset files to public folder. path_ops.cp( src=str(root / constants.Dirs.APP_ASSETS), dest=str(root / prerequisites.get_web_dir() / constants.Dirs.PUBLIC), - ignore=tuple( - 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 + ignore=tuple(f"*.{ext}" for ext in constants.Reflex.STYLESHEETS_SUPPORTED), ) # Set the environment variables in client (env.json).