1
0

Update vite.config.js

This commit is contained in:
Jose
2025-03-17 01:40:11 +01:00
committed by GitHub
parent 166e32db20
commit b06f1c5285

View File

@@ -1,6 +1,8 @@
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import cleanPlugin from 'vite-plugin-clean' import cleanPlugin from 'vite-plugin-clean'
import path from 'path'
import os from 'os'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
@@ -18,7 +20,9 @@ export default defineConfig({
} }
} }
}, },
outDir: '../backend/src/main/resources/webroot', outDir: path.join(
os.platform() === 'win32' ? os.homedir() + '\\.contaminus\\webroot' : os.homedir() + '/.config/contaminus/webroot'
),
}, },
publicDir: 'public', publicDir: 'public',
}) })