mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00
fix: refactor path resolution logic for project root (#2674)
--------- Co-authored-by: MAERYO <maeryo@hanwha.com>
This commit is contained in:
parent
5994224468
commit
95fec7f694
@ -1,5 +1,5 @@
|
|||||||
import { fileURLToPath, URL } from "node:url";
|
import { fileURLToPath, URL } from "node:url";
|
||||||
|
import path from "node:path";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import legacy from "@vitejs/plugin-legacy";
|
import legacy from "@vitejs/plugin-legacy";
|
||||||
import vue2 from "@vitejs/plugin-vue2";
|
import vue2 from "@vitejs/plugin-vue2";
|
||||||
@ -17,7 +17,7 @@ const plugins = [
|
|||||||
const resolve = {
|
const resolve = {
|
||||||
alias: {
|
alias: {
|
||||||
vue: "vue/dist/vue.esm.js",
|
vue: "vue/dist/vue.esm.js",
|
||||||
"@/": fileURLToPath(new URL("./src/", import.meta.url)),
|
"@/": `${path.resolve(__dirname, "src")}/`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user