forked from figma/sds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (23 loc) · 747 Bytes
/
vite.config.ts
File metadata and controls
24 lines (23 loc) · 747 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
import react from "@vitejs/plugin-react";
import path from "path";
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
base: "./",
plugins: [react()],
resolve: {
alias: {
compositions: path.resolve(__dirname, "./src/ui/compositions"),
data: path.resolve(__dirname, "./src/data"),
hooks: path.resolve(__dirname, "./src/ui/hooks"),
icons: path.resolve(__dirname, "./src/ui/icons"),
images: path.resolve(__dirname, "./src/ui/images"),
layout: path.resolve(__dirname, "./src/ui/layout"),
primitives: path.resolve(__dirname, "./src/ui/primitives"),
utils: path.resolve(__dirname, "./src/ui/utils"),
},
},
server: {
port: 8000,
},
});