-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
34 lines (33 loc) · 847 Bytes
/
vite.config.ts
File metadata and controls
34 lines (33 loc) · 847 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
25
26
27
28
29
30
31
32
33
34
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
build: {
rollupOptions: {
input: {
main: './index.html',
'og-hero': './src/api/og/hero',
'og-tip': './src/api/og/tip',
},
output: {
manualChunks: {
"react-vendor": ["react", "react-dom", "react-router-dom"],
"web3-vendor": ["viem", "wagmi", "@reown/appkit"],
"graphql-vendor": ["urql", "graphql"],
},
},
},
chunkSizeWarningLimit: 1000,
},
base: "./",
optimizeDeps: {
include: ["react", "react-dom", "react-router-dom"],
},
});