From a384dd53d3a2c07356dbe10d8777527d468eca29 Mon Sep 17 00:00:00 2001 From: jamesschuler Date: Wed, 24 May 2023 22:20:25 -0700 Subject: [PATCH] vite config --- frontend/vite.config.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index f5bd5e6..ea3b0f1 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,5 +1,5 @@ import vue from "@vitejs/plugin-vue"; -import { resolve } from "path"; +import { fileURLToPath, URL } from "url"; import { defineConfig } from "vite"; import WindiCSS from "vite-plugin-windicss"; @@ -16,11 +16,7 @@ export default defineConfig({ }, }, resolve: { - alias: { - "~/": `${resolve(__dirname, "src")}/`, - "@": resolve("src"), - "@components": resolve("src/@components"), - }, + alias: [{ find: "@", replacement: fileURLToPath(new URL("./src", import.meta.url)) }], }, plugins: [WindiCSS(), vue()], });