20 lines
398 B
TypeScript
20 lines
398 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
publicDir: 'public',
|
|
build: {
|
|
copyPublicDir: true,
|
|
},
|
|
cacheDir: '.cache/vite',
|
|
})
|