mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-27 00:50:06 +03:00
29 lines
729 B
TypeScript
29 lines
729 B
TypeScript
import path from 'path';
|
|
import {defineConfig} from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id: string) {
|
|
if(id.includes('radix') || id.includes('lucide') || id.includes('vaul')) {
|
|
return 'ui';
|
|
}
|
|
|
|
if (id.includes('react')) {
|
|
return 'react';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|