Files
REXNT/vite.config.js

25 lines
778 B
JavaScript
Raw Permalink Normal View History

2026-01-13 13:02:55 +03:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2025-12-23 17:09:40 +03:00
export default defineConfig({
2026-01-09 20:12:38 +03:00
plugins: [react()],
css: {
2026-01-13 13:02:55 +03:00
postcss: "./postcss.config.js",
2026-01-09 20:12:38 +03:00
},
build: {
rollupOptions: {
output: {
manualChunks: {
2026-01-13 13:02:55 +03:00
"react-vendor": ["react", "react-dom"],
"animation-vendor": ["three", "styled-components", "framer-motion"],
},
assetFileNames: ({ name }) => {
if (name && name.match(/\.(png|jpe?g|svg|gif|webp)$/)) {
return "assets/images/[name][extname]";
}
return "assets/[name]-[hash][extname]";
},
},
},
},
});