Files
proxycast/vite.config.ts
T
PeanutSplash eb2b69c6bb feat: add Zhipu icon, custom scrollbar styles, and SVGR support
- Added a new SVG icon for Zhipu in the icons provider directory.
- Implemented custom scrollbar styles for better UI experience.
- Updated Vite configuration to include SVGR plugin for importing SVGs as React components.
- Added SVGR type definitions to Vite environment declarations.
2025-12-24 23:32:11 +08:00

33 lines
651 B
TypeScript

/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import path from "path";
export default defineConfig({
plugins: [react(), svgr()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
clearScreen: false,
server: {
port: 1420,
strictPort: false,
watch: {
ignored: ["**/src-tauri/**"],
},
},
test: {
globals: true,
environment: "jsdom",
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/scripts/playwright-login/**",
"**/src-tauri/**",
],
},
});