-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
27 lines (26 loc) · 947 Bytes
/
vite.config.ts
File metadata and controls
27 lines (26 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { defineConfig } from "vitest/config"
import svgr from "vite-plugin-svgr"
import react from "@vitejs/plugin-react-swc"
import tailwindcss from "@tailwindcss/vite"
import path from "path"
export default defineConfig({
plugins: [svgr(), react(), tailwindcss()],
assetsInclude: ["**/*.webp", "**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.svg"],
resolve: {
alias: {
"@assets": path.resolve(__dirname, "./src/assets"),
"@core": path.resolve(__dirname, "./src/core"),
"@config": path.resolve(__dirname, "./src/config"),
"@features": path.resolve(__dirname, "./src/features"),
"@shared": path.resolve(__dirname, "./src/shared"),
"@sharedIcons": path.resolve(__dirname, "./src/assets/icons/shared"),
"@themeIcons": path.resolve(__dirname, "./src/assets/icons/themes"),
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/test/setup.ts",
css: true,
},
})