-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvite.config.ts
More file actions
24 lines (23 loc) · 798 Bytes
/
Copy pathvite.config.ts
File metadata and controls
24 lines (23 loc) · 798 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 { resolve } from "node:path";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
// Set VITE_BASE (e.g. "/openportal/") when deploying under a sub-path,
// such as a GitHub Pages project site. Defaults to root for custom domains.
base: process.env.VITE_BASE || "/",
plugins: [react(), tailwindcss()],
// The program runtime spawns a module worker (src/lib/programs).
worker: { format: "es" },
resolve: {
alias: {
"@": resolve(__dirname, "./src"),
},
},
build: {
target: "es2022",
// The core chunk bundles the ya-webadb ADB/WebUSB stack, which is large
// by nature; advanced tools (scrcpy, etc.) are already split out lazily.
chunkSizeWarningLimit: 600,
},
});