aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.ts
blob: 70cdea1d1993c77790b9d18892bd2cee48369876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import react from '@vitejs/plugin-react'
import path from 'node:path'
import { defineConfig } from 'vite'

export default defineConfig({
  root: path.resolve(__dirname, 'renderer'),
  base: './', // critical for file:// loads in production
  server: {
    port: 5173,
    strictPort: true, // so wait-on works reliably
  },
  build: {
    outDir: 'dist', // => renderer/dist
    emptyOutDir: true,
  },
  plugins: [react()],
})