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,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"]
}

View File

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