mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 14:14:26 +01:00
25 lines
537 B
TypeScript
25 lines
537 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: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@shared': path.resolve(__dirname, './shared'),
|
|
},
|
|
},
|
|
define: {
|
|
'process.env.IS_ELECTRON': JSON.stringify(true),
|
|
},
|
|
build: {
|
|
outDir: '.vite/build',
|
|
emptyOutDir: true,
|
|
},
|
|
});
|