Add SVG icons and integrate vite-plugin-svgr for improved asset handling

This commit is contained in:
2025-01-24 16:14:03 +01:00
parent 9c94a351ee
commit 7f5f253c21
17 changed files with 1065 additions and 211 deletions

View File

@@ -1,6 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import path from 'path';
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
@@ -20,5 +21,5 @@ export default defineConfig({
outDir: 'dist',
emptyOutDir: true,
},
plugins: [react()],
plugins: [react(), svgr()],
})