refactor: update admin frontend template

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2022-06-27 15:06:03 +08:00
parent e34199195e
commit ce38cdcad9
5 changed files with 21 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import {fileURLToPath, URL} from "url";
import { fileURLToPath, URL } from "url";
import {defineConfig} from "vite";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
@@ -13,7 +13,9 @@ export default defineConfig({
},
},
build: {
outDir: fileURLToPath(new URL("../src/main/resources/admin", import.meta.url)),
outDir: fileURLToPath(
new URL("../src/main/resources/admin", import.meta.url)
),
emptyOutDir: true,
lib: {
entry: "src/index.ts",
@@ -26,7 +28,8 @@ export default defineConfig({
output: {
globals: {
vue: "Vue",
"@halo-dev/components": "components",
"@halo-dev/components": "HaloComponents",
"@halo-dev/admin-shared": "HaloAdminShared",
},
},
},