mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 06:34:26 +01:00
24 lines
492 B
TypeScript
24 lines
492 B
TypeScript
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@shared': path.resolve(__dirname, './shared'),
|
|
},
|
|
},
|
|
define: {
|
|
'process.env.IS_ELECTRON': JSON.stringify(true),
|
|
},
|
|
build: {
|
|
outDir: '.vite/build',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|