Set up @ alias for src/

This commit is contained in:
Joscha 2025-03-02 18:18:05 +01:00
parent f2299a7219
commit 8729cf09b1
4 changed files with 42 additions and 19 deletions

View file

@ -1,8 +1,12 @@
import vue from "@vitejs/plugin-vue";
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vueDevTools from "vite-plugin-vue-devtools";
// https://vite.dev/config/
export default defineConfig({
plugins: [vue(), vueDevTools()],
resolve: {
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
},
});