Skip to content

Commit

Permalink
remove useless path search
Browse files Browse the repository at this point in the history
  • Loading branch information
KronosDev-Pro committed Nov 11, 2024
1 parent 13b21a1 commit 0223081
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions reflex/utils/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 0223081

Please sign in to comment.