yuki / vite.config.ts
OhMyDitzzy
anything
6c75f16
raw
history blame contribute delete
353 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 7860,
host: true
},
build: {
outDir: 'dist/public',
emptyOutDir: true,
}
})