mirror of
https://github.com/halo-dev/plugin-starter.git
synced 2025-10-15 23:53:23 +00:00
refactor: update admin frontend template
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
@@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user