Files
doormile_hub_console/vite.config.js
2026-07-01 17:49:49 +05:30

24 lines
479 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';
export default defineConfig({
plugins: [react()],
css: {
// Inline postcss config avoids dynamic package resolution issues
postcss: { plugins: [] }
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
port: 3001,
strictPort: true,
host: true,
open: true
}
});