forked from MihirMandviya/voice-axis-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
37 lines (36 loc) · 924 Bytes
/
Copy pathvite.config.ts
File metadata and controls
37 lines (36 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
import { componentTagger } from "lovable-tagger";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
server: {
port: 8081,
strictPort: false, // Allow Vite to try other ports if 8081 is in use
},
plugins: [
react({
fastRefresh: false,
include: "**/*.{jsx,tsx}",
}),
mode === "development" && componentTagger()
].filter(Boolean),
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
optimizeDeps: {
include: ["react", "react-dom"],
},
build: {
rollupOptions: {
output: {
// Add timestamp to filenames for cache busting
entryFileNames: `assets/[name]-[hash].js`,
chunkFileNames: `assets/[name]-[hash].js`,
assetFileNames: `assets/[name]-[hash].[ext]`
}
}
}
}));