Initial commit: Electron + React touchscreen kiosk dashboard for Home Assistant
This commit is contained in:
26
vite.config.ts
Executable file
26
vite.config.ts
Executable file
@@ -0,0 +1,26 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: './',
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@/components': path.resolve(__dirname, './src/components'),
|
||||
'@/hooks': path.resolve(__dirname, './src/hooks'),
|
||||
'@/services': path.resolve(__dirname, './src/services'),
|
||||
'@/config': path.resolve(__dirname, './src/config'),
|
||||
'@/styles': path.resolve(__dirname, './src/styles'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user