31 lines
613 B
JavaScript
31 lines
613 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/postcss';
|
|
import autoprefixer from 'autoprefixer';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
root: './src/renderer',
|
|
base: './',
|
|
build: {
|
|
outDir: '../../dist/renderer',
|
|
emptyOutDir: true,
|
|
},
|
|
css: {
|
|
postcss: {
|
|
plugins: [tailwindcss(), autoprefixer()],
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
hmr: {
|
|
overlay: false,
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src/renderer'),
|
|
},
|
|
},
|
|
});
|