@echo off setlocal EnableExtensions chcp 65001 >nul set "JS=%~dp0..\app\static\js" cd /d "%JS%" if not exist original mkdir original copy /Y *.js original\ >nul 2>&1 echo Beautifying JS files... call npx --yes js-beautify@1.15.1 --type js --indent-size 2 --wrap-line-length 120 "2.6eb46a21.chunk.js" -o "2.6eb46a21.chunk.js" call npx --yes js-beautify@1.15.1 --type js --indent-size 2 --wrap-line-length 120 "main.cc26925e.chunk.js" -o "main.cc26925e.chunk.js" call npx --yes js-beautify@1.15.1 --type js --indent-size 2 --wrap-line-length 120 "runtime~main.ce51eff0.js" -o "runtime~main.ce51eff0.js" echo. echo Done. Minified backups: app\static\js\original\ echo. endlocal exit /b 0