mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-20 14:34:55 +00:00
Update: Electron implementation changed BrowserRouter to HashRouter due to Electron implementation issues. Basic Electron build configuration in package.json.
This commit is contained in:
@@ -4,13 +4,13 @@ import react from '@vitejs/plugin-react'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: './', // Esto asegura que las rutas generadas sean relativas al archivo index.html
|
||||
base: './',
|
||||
build: {
|
||||
outDir: 'dist', // Carpeta de salida para producción
|
||||
emptyOutDir: true, // Limpia la carpeta antes de construir
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
port: 5173, // El puerto donde Vite escucha por defecto
|
||||
port: 5173,
|
||||
},
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user