Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions start.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
@echo off
REM This script sets the necessary environment variable and starts the React app

echo Setting OpenSSL legacy provider and starting the app...
set NODE_OPTIONS=--openssl-legacy-provider
yarn start
echo Setting OpenSSL legacy provider and increasing memory allocation...
set "NODE_OPTIONS=--openssl-legacy-provider --max-old-space-size=4096"

REM Run lessc directly using local node_modules
call node_modules\.bin\lessc --js --clean-css="--s1 --advanced" src/styles/themes/main.less public/themes/main.css
if errorlevel 1 goto error

echo Theme built successfully, starting the app...
call yarn run craco start
if errorlevel 1 goto error
goto end

:error
echo Failed with error #%errorlevel%.
exit /b %errorlevel%

:end
Loading