forked from depromeet/layer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
37 lines (35 loc) · 896 Bytes
/
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import Sitemap from "vite-plugin-sitemap";
import svgr from "vite-plugin-svgr";
import path from "path";
import dotenv from "dotenv";
import { VitePluginRadar } from "vite-plugin-radar";
dotenv.config();
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react({
jsxImportSource: "@emotion/react",
babel: {
presets: ["jotai/babel/preset"],
},
}),
svgr(),
Sitemap({ hostname: "https://layerapp.io" }),
VitePluginRadar({
analytics: {
id: process.env.VITE_GOOGLE_ANALYTICS,
},
}),
],
build: {
outDir: "dist", // 빌드 결과가 저장되는 폴더
sourcemap: true, // 디버깅을 위한 소스맵 생성 (선택 사항)
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});