30 lines
575 B
JavaScript
30 lines
575 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: "localhost",
|
|
port: 3000,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 1000,
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks: {
|
|
react: ['react', 'react-dom'],
|
|
router: ['react-router-dom'],
|
|
motion: ['framer-motion'],
|
|
axios: ['axios'],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|