29 lines
597 B
TypeScript
29 lines
597 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { fileURLToPath } from 'url';
|
|
import { dirname, resolve } from 'path';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/',
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: ['lucide-react'],
|
|
entries: ['src/**/*.tsx', 'src/**/*.ts'],
|
|
force: false,
|
|
},
|
|
server: {
|
|
fs: {
|
|
allow: ['..'],
|
|
},
|
|
},
|
|
});
|