mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-07 00:01:37 +00:00
Shorter, cleaner path. The 'web-' prefix was redundant given the dir sits at the repo root next to web/ and is unambiguously the admin web app. Git tracked the rename so blame + history follow through to the new location. Updated README.md and docs/VENDOR_LOCKIN.md references plus the package README header. No code changes.
37 lines
1023 B
TypeScript
37 lines
1023 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
// Pre-bundle the heaviest deps so the first request doesn't pay
|
|
// the cold-compile cost. Same intent as web/, lighter list because
|
|
// the admin app doesn't pull in tiptap/dnd-kit/etc.
|
|
optimizeDeps: {
|
|
include: [
|
|
"react",
|
|
"react-dom",
|
|
"react-router-dom",
|
|
"axios",
|
|
"@tanstack/react-query",
|
|
"@tanstack/react-query-devtools",
|
|
"lucide-react",
|
|
],
|
|
},
|
|
server: {
|
|
// Run on a non-default port so it coexists with the dashboard
|
|
// dev server (5173) without a port collision when both are up.
|
|
port: 5174,
|
|
strictPort: false,
|
|
},
|
|
});
|