16 lines
356 B
TypeScript
16 lines
356 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve, dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
|
|
const root = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [react(),],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(root, 'src'),
|
|
},
|
|
},
|
|
}); |