19 lines
413 B
JavaScript
19 lines
413 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'components': path.resolve(__dirname, './src/components')
|
|
},
|
|
extensions: ['.js', '.jsx']
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
assetsDir: 'assets',
|
|
base: '/'
|
|
}
|
|
}); |