Edit vite config
All checks were successful
Build frontend / build (push) Successful in 46s

This commit is contained in:
Rahaf
2026-01-13 13:02:55 +03:00
parent 32bf587e4b
commit dee674afc5

View File

@ -1,19 +1,25 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
css: {
postcss: './postcss.config.js',
postcss: "./postcss.config.js",
},
build: {
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom'],
'animation-vendor': ['three', 'styled-components', 'framer-motion'],
}
}
}
}
})
"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]";
},
},
},
},
});