Версия 0.5.6 В vite.config.ts прописан туть сборки в папку public.

This commit is contained in:
anibilag 2025-07-17 12:34:05 +03:00
parent bccf850ac5
commit a71091565d
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{
"name": "lawn-mowing-scheduler",
"private": true,
"version": "0.5.5",
"version": "0.5.6",
"type": "module",
"scripts": {
"dev": "concurrently \"npm run server\" \"npm run client\"",

View File

@ -1,5 +1,6 @@
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd());
@ -21,5 +22,9 @@ export default defineConfig(({ mode }) => {
},
},
},
build: {
outDir: resolve(__dirname, '../public'),
emptyOutDir: true,
},
}
});