32 lines
806 B
TypeScript
32 lines
806 B
TypeScript
|
import { defineConfig } from 'vite';
|
||
|
import react from '@vitejs/plugin-react-swc';
|
||
|
import svgr from 'vite-plugin-svgr';
|
||
|
import path from 'node:path';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [
|
||
|
react(),
|
||
|
svgr({
|
||
|
svgrOptions: {
|
||
|
exportType: 'default',
|
||
|
ref: true,
|
||
|
svgo: false,
|
||
|
titleProp: true,
|
||
|
},
|
||
|
include: '**/*.svg',
|
||
|
}),
|
||
|
],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': path.resolve(__dirname, 'src'),
|
||
|
'@app': path.resolve(__dirname, 'src/app'),
|
||
|
'@pages': path.resolve(__dirname, 'src/pages'),
|
||
|
'@shared': path.resolve(__dirname, 'src/shared'),
|
||
|
'@widgets': path.resolve(__dirname, 'src/widgets'),
|
||
|
'@feature': path.resolve(__dirname, 'src/feature'),
|
||
|
},
|
||
|
},
|
||
|
assetsInclude: ['**/*.ttf'],
|
||
|
});
|