feat: add desktop2
This commit is contained in:
30
apps/desktop2/vite.config.ts
Normal file
30
apps/desktop2/vite.config.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import { defineConfig } from "vite";
|
||||
import topLevelAwait from "vite-plugin-top-level-await";
|
||||
import viteTsconfigPaths from "vite-tsconfig-paths";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
react(),
|
||||
viteTsconfigPaths(),
|
||||
topLevelAwait({
|
||||
promiseExportName: "__tla",
|
||||
promiseImportName: (i) => `__tla_${i}`,
|
||||
}),
|
||||
TanStackRouterVite({
|
||||
routesDirectory: "./src/routes",
|
||||
generatedRouteTree: "./src/tree.gen.ts",
|
||||
routeFileIgnorePrefix: "-",
|
||||
quoteStyle: "single",
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: "../../dist",
|
||||
},
|
||||
server: {
|
||||
strictPort: true,
|
||||
port: 3000,
|
||||
},
|
||||
clearScreen: false,
|
||||
});
|
||||
Reference in New Issue
Block a user