-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.js
29 lines (28 loc) · 893 Bytes
/
vite.config.js
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
import { resolve } from "path";
import { defineConfig } from "vite";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svgr({
include: "**/*.svg?react",
}),
react(),
vanillaExtractPlugin(),
],
resolve: {
alias: [
{ find: "@", replacement: resolve(__dirname, "src") },
{ find: "@assets", replacement: resolve(__dirname, "src/assets") },
{ find: "@context", replacement: resolve(__dirname, "src/context") },
{ find: "@pages", replacement: resolve(__dirname, "src/pages") },
{
find: "@components",
replacement: resolve(__dirname, "src/components"),
},
{ find: "@styles", replacement: resolve(__dirname, "src/styles") },
],
},
});