31
qwen3-tts-frontend/vite.config.ts
Normal file
31
qwen3-tts-frontend/vite.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import path from "path"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import { defineConfig } from "vite"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
|
||||
'ui-vendor': [
|
||||
'@radix-ui/react-tabs',
|
||||
'@radix-ui/react-label',
|
||||
'@radix-ui/react-select',
|
||||
'@radix-ui/react-slider',
|
||||
'@radix-ui/react-scroll-area',
|
||||
],
|
||||
'form-vendor': ['react-hook-form', 'zod', '@hookform/resolvers'],
|
||||
'utils': ['axios', 'clsx', 'tailwind-merge'],
|
||||
},
|
||||
},
|
||||
},
|
||||
chunkSizeWarningLimit: 300,
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user