diff options
| author | Ethan Mick <ethan@ethanmick.com> | 2025-09-15 12:33:08 -0400 |
|---|---|---|
| committer | Ethan Mick <ethan@ethanmick.com> | 2025-09-15 12:33:08 -0400 |
| commit | a30f727c95d7aa01e4a05091601067367e3b795b (patch) | |
| tree | 663c309997058b4e54ac08e3f5e6b26cc31f6d5a /vite.config.ts | |
initial commit
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..70cdea1 --- /dev/null +++ b/vite.config.ts | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | import react from '@vitejs/plugin-react' | ||
| 2 | import path from 'node:path' | ||
| 3 | import { defineConfig } from 'vite' | ||
| 4 | |||
| 5 | export default defineConfig({ | ||
| 6 | root: path.resolve(__dirname, 'renderer'), | ||
| 7 | base: './', // critical for file:// loads in production | ||
| 8 | server: { | ||
| 9 | port: 5173, | ||
| 10 | strictPort: true, // so wait-on works reliably | ||
| 11 | }, | ||
| 12 | build: { | ||
| 13 | outDir: 'dist', // => renderer/dist | ||
| 14 | emptyOutDir: true, | ||
| 15 | }, | ||
| 16 | plugins: [react()], | ||
| 17 | }) | ||
