-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.mjs
34 lines (33 loc) · 976 Bytes
/
vite.config.mjs
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
import { defineConfig } from 'vite'
import laravel from 'laravel-vite-plugin'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.jsx'],
refresh: true,
}),
react(),
],
build: {
rollupOptions: {
output: {
manualChunks: {
lodash: ['lodash'],
daisyui: ['daisyui'],
dayjs: ['dayjs'],
sonner: ['sonner'],
reactapexcharts: ['react-apexcharts'],
'react-tailwindcss-datepicker': [
'react-tailwindcss-datepicker',
],
'react-json-pretty': ['react-json-pretty'],
},
},
},
chunkSizeWarningLimit: '571kB',
},
server: {
hmr: { host: 'localhost' },
},
})