Skip to content

Commit 6ebd732

Browse files
chore: bat file for dev start
1 parent 81de57c commit 6ebd732

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

dev.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
REM This script sets the necessary environment variable and starts the React app in dev mode
3+
4+
echo Setting OpenSSL legacy provider and increasing memory allocation...
5+
set "NODE_OPTIONS=--openssl-legacy-provider --max-old-space-size=4096"
6+
7+
REM Run lessc directly using local node_modules
8+
call node_modules\.bin\lessc --js --clean-css="--s1 --advanced" src/styles/themes/main.less public/themes/main.css
9+
if errorlevel 1 goto error
10+
11+
echo Theme built successfully, starting the app in development mode...
12+
call yarn run craco start
13+
if errorlevel 1 goto error
14+
goto end
15+
16+
:error
17+
echo Failed with error #%errorlevel%.
18+
exit /b %errorlevel%
19+
20+
:end

0 commit comments

Comments
 (0)