WebUI paths setup

This commit is contained in:
Julien Valverdé
2024-07-19 00:55:47 +02:00
parent 7729bff903
commit c033aa0bed
2 changed files with 14 additions and 2 deletions

View File

@@ -22,7 +22,12 @@
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}, },
"include": ["src"] "include": ["src"]
} }

View File

@@ -1,5 +1,6 @@
import { TanStackRouterVite } from "@tanstack/router-plugin/vite" import { TanStackRouterVite } from "@tanstack/router-plugin/vite"
import react from "@vitejs/plugin-react" import react from "@vitejs/plugin-react"
import path from "node:path"
import { defineConfig } from "vite" import { defineConfig } from "vite"
@@ -7,11 +8,17 @@ import { defineConfig } from "vite"
export default defineConfig({ export default defineConfig({
server: { server: {
host: true, host: true,
port: 80, port: 8080,
}, },
plugins: [ plugins: [
TanStackRouterVite(), TanStackRouterVite(),
react(), react(),
], ],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src")
},
},
}) })