Procházet zdrojové kódy

run setup_frontend during export (#1148)

Sheldon před 2 roky
rodič
revize
ee762a7b35
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      pynecone/pc.py

+ 4 - 0
pynecone/pc.py

@@ -213,6 +213,10 @@ def export(
 
     # Compile the app in production mode and export it.
     console.rule("[bold]Compiling production app and preparing for export.")
+
+    if frontend:
+        build.setup_frontend(Path.cwd())
+
     app = prerequisites.get_app().app
     build.export_app(
         app,