We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca1e0c4 + 379fd89 commit 14d4f0bCopy full SHA for 14d4f0b
1 file changed
start.bat
@@ -1,6 +1,20 @@
1
@echo off
2
REM This script sets the necessary environment variable and starts the React app
3
4
-echo Setting OpenSSL legacy provider and starting the app...
5
-set NODE_OPTIONS=--openssl-legacy-provider
6
-yarn start
+echo Setting OpenSSL legacy provider and increasing memory allocation...
+set "NODE_OPTIONS=--openssl-legacy-provider --max-old-space-size=4096"
+
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...
12
+call yarn run craco start
13
14
+goto end
15
16
+:error
17
+echo Failed with error #%errorlevel%.
18
+exit /b %errorlevel%
19
20
+:end
0 commit comments