Avatar / frontend /vite.config.js
DataSage12's picture
Initial commit - HOLOKIA-AVATAR v2.2
de63014
raw
history blame contribute delete
629 Bytes
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'],
},
});