This commit is contained in:
2024-07-16 21:52:31 +03:00
parent 11013931cc
commit b748ff7dd7
7 changed files with 38 additions and 16 deletions

14
scripts/build.cjs Normal file
View File

@@ -0,0 +1,14 @@
const { execSync } = require('child_process');
const { platform } = require('os');
const isWindows = platform() === 'win32';
if (isWindows) {
execSync('del /s /q api\\build', { stdio: 'inherit' });
execSync('del /s /q dist', { stdio: 'inherit' });
} else {
execSync('rm -rf api/build', { stdio: 'inherit' });
execSync('rm -rf dist', { stdio: 'inherit' });
}
execSync('vite build --out-dir api/build', { stdio: 'inherit' });