2025-10-09 15:59:50 +08:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
2025-10-10 15:09:04 +08:00
|
|
|
import path from 'path'
|
2025-10-21 16:48:48 +08:00
|
|
|
import svgr from "vite-plugin-svgr";
|
2025-10-09 15:59:50 +08:00
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
2025-10-21 18:21:48 +08:00
|
|
|
plugins: [
|
|
|
|
|
react(),
|
|
|
|
|
svgr({
|
|
|
|
|
svgrOptions: {
|
|
|
|
|
icon: true,
|
|
|
|
|
prettier: true,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
],
|
2025-10-10 15:09:04 +08:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-10-09 15:59:50 +08:00
|
|
|
})
|