gui/cmd/core-demo/public/vite.config.js
Snider 032c426ac3 feat: initial Wails v3 desktop framework
GUI packages, examples, and documentation for building
desktop applications with Go and web technologies.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 08:44:23 +00:00

17 lines
517 B
JavaScript

import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
// Set the root of the project to the 'html' directory.
// Vite will look for index.html in this folder.
root: 'html',
build: {
// Set the output directory for the build.
// We need to go up one level from 'html' to place the 'dist' folder
// in the correct location for Wails.
outDir: '../dist',
// Ensure the output directory is emptied before each build.
emptyOutDir: true,
},
});