stuve-it-frontend/vite.config.ts

15 lines
386 B
TypeScript
Raw Normal View History

2024-04-14 01:33:44 +00:00
import {defineConfig} from 'vite'
2024-03-26 16:07:08 +00:00
import react from '@vitejs/plugin-react-swc'
2024-05-13 14:22:31 +00:00
import svgr from 'vite-plugin-svgr';
import path from 'path';
2024-03-26 16:07:08 +00:00
// https://vitejs.dev/config/
export default defineConfig({
2024-05-13 14:22:31 +00:00
plugins: [react(), svgr()],
resolve: {
alias: {
"@": path.resolve(__dirname, "src"),
"~": path.resolve(__dirname, "public"),
},
2024-05-13 14:22:31 +00:00
}
2024-04-14 01:33:44 +00:00
})