@echo off cd /d %~dp0frontend call npm run build cd /d %~dp0 if exist static rmdir /s /q static mkdir static xcopy /E /I /Y frontend\dist\* static\ xcopy /E /I /Y frontend\public\models static\models\ copy /Y frontend\public\icon.svg static\icon.svg echo Build copied to static/