Spaces:
Sleeping
Sleeping
| const { defineConfig } = require('vite'); | |
| const react = require('@vitejs/plugin-react'); | |
| const path = require('path'); | |
| const tailwindcss = require('tailwindcss'); | |
| const autoprefixer = require('autoprefixer'); | |
| module.exports = defineConfig({ | |
| plugins: [react()], | |
| resolve: { | |
| alias: { | |
| '@': path.resolve(__dirname, './src'), | |
| }, | |
| }, | |
| css: { | |
| postcss: { | |
| plugins: [ | |
| tailwindcss, | |
| autoprefixer | |
| ] | |
| } | |
| }, | |
| server: { | |
| port: 5173, | |
| open: true, | |
| hmr: { | |
| overlay: false | |
| } | |
| }, | |
| optimizeDeps: { | |
| include: ['three', '@react-three/fiber', '@react-three/drei'], | |
| }, | |
| }); |