Files
vastly/frontend/vite.config.ts
2024-12-16 21:04:05 -06:00

18 lines
444 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const rootPath = new URL(".", import.meta.url).pathname.substring(1);
console.log({ rootPath, url: import.meta.url });
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@components": rootPath + "src/components",
"@wails": rootPath + "wailsjs",
"@src": rootPath + "src",
},
},
});