-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
37 lines (36 loc) · 949 Bytes
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
sourcemap: true,
rollupOptions: {
output: {
manualChunks: {
'mantine': [
'@mantine/core',
'@mantine/carousel',
'@mantine/dates',
'@mantine/form',
'@mantine/hooks',
'@mantine/modals',
'@mantine/notifications',
],
'react-vendor': ['react', 'react-dom', 'react-router-dom'],
'redux-vendor': ['@reduxjs/toolkit', 'react-redux', 'redux'],
'icons': ['@tabler/icons-react', 'react-icons'],
'utils': ['axios', 'dayjs'],
},
},
},
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "/src/styles/_mantine";`,
api: 'modern-compiler',
},
},
},
});