added build config
This commit is contained in:
parent
1ef6a9f730
commit
ce24e44b0e
|
|
@ -9,4 +9,14 @@ export default defineConfig({
|
|||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
"react-vendor": ["react", "react-dom", "react-router-dom"], // Вынос библиотеки React
|
||||
"ui-library": ["@/components/shared"], // Отдельный чанк для UI-компонентов
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue