-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
45 lines (43 loc) · 1.08 KB
/
vite.config.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { resolve } from "path";
const config = defineConfig({
plugins: [react()],
server: {
host: "0.0.0.0",
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "./src/_mantine";`,
},
postcss: {
plugins: {
"postcss-preset-mantine": {},
"postcss-simple-vars": {
variables: {
"mantine-breakpoint-xs": "36em",
"mantine-breakpoint-sm": "48em",
"mantine-breakpoint-md": "62em",
"mantine-breakpoint-lg": "75em",
"mantine-breakpoint-xl": "88em",
},
},
},
},
},
},
resolve: {
alias: [
{ find: "~", replacement: resolve(__dirname, "src") },
{ find: "~test", replacement: resolve(__dirname, "test") },
],
},
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(config as any).test = {
environment: "jsdom",
globals: true,
setupFiles: "./vitest.setup.js",
};
export default config;