mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import tanstackRouter from "@tanstack/router-plugin/vite";
|
|
import { devtools } from "@tanstack/devtools-vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
devtools({
|
|
removeDevtoolsOnBuild: true,
|
|
logging: true,
|
|
enhancedLogs: {
|
|
enabled: true,
|
|
},
|
|
}),
|
|
tanstackRouter({
|
|
target: "react",
|
|
autoCodeSplitting: true,
|
|
routesDirectory: "./src/routes",
|
|
generatedRouteTree: "./src/routeTree.gen.ts",
|
|
routeFileIgnorePrefix: "-",
|
|
quoteStyle: "double",
|
|
}),
|
|
react(),
|
|
tsconfigPaths(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@/public": path.resolve(__dirname, "./public"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
host: true,
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
sourcemap: true,
|
|
},
|
|
optimizeDeps: {
|
|
exclude: ["@nimbus/auth", "@nimbus/env", "@nimbus/server", "@nimbus/shared"],
|
|
},
|
|
define: {
|
|
"process.env": {},
|
|
},
|
|
});
|