Przeglądaj źródła

fix tailwind for stateful components imported from utils (#2328)

Thomas Brandého 1 rok temu
rodzic
commit
f75d5f2808
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      reflex/constants/style.py

+ 1 - 1
reflex/constants/style.py

@@ -17,6 +17,6 @@ class Tailwind(SimpleNamespace):
     # The Tailwind config.
     # The Tailwind config.
     CONFIG = os.path.join(Dirs.WEB, "tailwind.config.js")
     CONFIG = os.path.join(Dirs.WEB, "tailwind.config.js")
     # Default Tailwind content paths
     # Default Tailwind content paths
-    CONTENT = ["./pages/**/*.{js,ts,jsx,tsx}"]
+    CONTENT = ["./pages/**/*.{js,ts,jsx,tsx}", "./utils/**/*.{js,ts,jsx,tsx}"]
     # Relative tailwind style path to root stylesheet in STYLES_DIR.
     # Relative tailwind style path to root stylesheet in STYLES_DIR.
     ROOT_STYLE_PATH = "./tailwind.css"
     ROOT_STYLE_PATH = "./tailwind.css"