27 lines
511 B
TypeScript
27 lines
511 B
TypeScript
|
import { defineConfig } from 'vite';
|
||
|
import react from '@vitejs/plugin-react';
|
||
|
import path from 'path';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [react()],
|
||
|
base: './',
|
||
|
build: {
|
||
|
outDir: 'dist',
|
||
|
emptyOutDir: true,
|
||
|
target: 'esnext',
|
||
|
rollupOptions: {
|
||
|
external: ['http', 'https', 'path', 'fs', 'electron']
|
||
|
}
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': path.resolve(__dirname, './src'),
|
||
|
},
|
||
|
},
|
||
|
server: {
|
||
|
port: 5174,
|
||
|
},
|
||
|
clearScreen: false,
|
||
|
});
|