mirror of
https://github.com/Xevion/vastly.git
synced 2025-12-06 03:16:59 -06:00
18 lines
444 B
TypeScript
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",
|
|
},
|
|
},
|
|
});
|