-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
42 lines (41 loc) · 1.07 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
import path from "path";
import { VitePluginRadar } from "vite-plugin-radar";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
TanStackRouterVite(),
VitePluginRadar({
/**
* enable or disable scripts injection in development
* default: false
*/
enableDev: true,
// Google Analytics (multiple tag can be set with an array)
analytics: [
{
id: "G-2WJVQ0EX4G",
disable: false,
config: {
cookie_domain: "auto",
cookie_expires: 63072000,
cookie_prefix: "none",
cookie_update: true,
cookie_flags: "",
send_page_view: true,
allow_google_signals: true,
allow_ad_personalization_signals: true,
},
},
],
}),
],
resolve: {
alias: {
"~": path.resolve(__dirname, "./src"),
},
},
});