Просмотр исходного кода

run setup_frontend during export (#1148)

Sheldon 2 лет назад
Родитель
Сommit
ee762a7b35
1 измененных файлов с 4 добавлено и 0 удалено
  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,