소스 검색

run setup_frontend during export (#1148)

Sheldon 2 년 전
부모
커밋
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,