Initial commit
Dieser Commit ist enthalten in:
26
frontend/vite.config.ts
Normale Datei
26
frontend/vite.config.ts
Normale Datei
@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: './',
|
||||
define: {
|
||||
// Define process globally to avoid "process is not defined" errors
|
||||
'process.env': {},
|
||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'),
|
||||
'process.platform': JSON.stringify('win32')
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
external: ['electron'],
|
||||
}
|
||||
},
|
||||
})
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren