ShiftSync/web/vite.config.js

21 lines
418 B
JavaScript
Raw Normal View History

2025-05-20 16:33:08 +00:00
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
2025-05-20 16:28:48 +00:00
// https://vite.dev/config/
2025-06-12 13:57:08 +00:00
export default defineConfig({
plugins: [react()],
server:{
host: true,
allowedHosts: true,
cors: true,
hmr: true
},
resolve: {
alias: {
'@src': path.resolve(__dirname, 'src'),
'@components': path.resolve(__dirname, 'components')
2025-05-20 16:33:08 +00:00
},
2025-06-12 13:57:08 +00:00
},
2025-05-20 16:33:08 +00:00
});