20 lines
447 B
TypeScript
20 lines
447 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import path from 'node:path';
|
|
|
|
export default defineConfig({
|
|
cacheDir: '.vite-local-cache',
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
assetsInclude: ['**/*.glb', '**/*.gltf', '**/*.hdr'],
|
|
server: {
|
|
port: 5173,
|
|
open: true,
|
|
},
|
|
});
|