这是一个巴适伙伴企业官网项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
769 B

import { defineConfig } from 'vite';
import { fileURLToPath, URL } from 'node:url';
import os from 'node:os';
import path from 'node:path';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
// Pure React (Vite + React Router + Tailwind v4) build config.
export default defineConfig({
// Keep Vite's dep-optimization cache out of node_modules so the sandbox
// safe-delete guard never blocks a bulk clear of node_modules/.vite/deps.
cacheDir: path.join(os.tmpdir(), 'bashi-vite-cache'),
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 4321,
host: true,
},
preview: {
port: 4321,
host: true,
},
});