Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
import path from "path";
|
2026-02-16 13:32:04 -06:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
2026-04-15 09:47:29 -05:00
|
|
|
import { createUiDevWatchOptions } from "./src/lib/vite-watch";
|
2026-02-16 13:32:04 -06:00
|
|
|
|
2026-04-15 16:46:12 +02:00
|
|
|
export default defineConfig(({ mode }) => ({
|
2026-02-16 13:32:04 -06:00
|
|
|
plugins: [react(), tailwindcss()],
|
2026-04-15 16:46:12 +02:00
|
|
|
build: {
|
|
|
|
|
minify: "esbuild",
|
|
|
|
|
},
|
|
|
|
|
esbuild:
|
|
|
|
|
mode === "production"
|
|
|
|
|
? {
|
|
|
|
|
drop: ["console", "debugger"],
|
|
|
|
|
legalComments: "none",
|
|
|
|
|
}
|
|
|
|
|
: undefined,
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
"@": path.resolve(__dirname, "./src"),
|
2026-03-22 06:34:15 -05:00
|
|
|
lexical: path.resolve(__dirname, "./node_modules/lexical/Lexical.mjs"),
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
},
|
|
|
|
|
},
|
2026-02-16 13:32:04 -06:00
|
|
|
server: {
|
|
|
|
|
port: 5173,
|
2026-04-15 09:47:29 -05:00
|
|
|
watch: createUiDevWatchOptions(process.cwd()),
|
2026-02-16 13:32:04 -06:00
|
|
|
proxy: {
|
2026-02-17 12:24:48 -06:00
|
|
|
"/api": {
|
|
|
|
|
target: "http://localhost:3100",
|
|
|
|
|
ws: true,
|
|
|
|
|
},
|
2026-02-16 13:32:04 -06:00
|
|
|
},
|
|
|
|
|
},
|
2026-04-15 16:46:12 +02:00
|
|
|
}));
|