-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvite.config.ts
More file actions
23 lines (22 loc) · 597 Bytes
/
vite.config.ts
File metadata and controls
23 lines (22 loc) · 597 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
assetsInclude: ["**/*.MID", "**/*.png","**/*.ogg", "**/*.jpg"],
server: {
port: 3000, // Change the port if needed
},
define: {
'process.env': {}, // Ensures compatibility with process.env
},
resolve: {
alias: {
'@': '/src', // Optional: Allows you to use '@/components' instead of '../../../components'
},
},
build: {
outDir: 'build', // Change from 'dist' to 'build'
},
base: './',
});