forked from vycdev/Kromacut
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (23 loc) · 755 Bytes
/
vite.config.ts
File metadata and controls
24 lines (23 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
import path from 'path';
// https://vite.dev/config/
export default defineConfig({
// Only use base path for GitHub Pages, not for Tauri
base: process.env.TAURI_ENV_PLATFORM ? '/' : '/Kromacut/',
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
optimizeDeps: {
include: ['three'],
// Treat three example controls as source to avoid stale optimized deps
exclude: [
'three/examples/jsm/controls/OrbitControls',
'three/examples/jsm/controls/OrbitControls.js',
],
},
});