feat: 添加服务器捆绑配置以支持远程图标获取

This commit is contained in:
2025-06-06 00:44:49 +08:00
parent 855250a9f4
commit bf16801f94

View File

@@ -26,6 +26,11 @@ export default defineNuxtConfig({
dir: "./public/icon",
},
],
serverBundle: {
remote: (name: string) =>
`https://gcore.jsdelivr.net/npm/@iconify-json/${name}/icons.json`,
externalizeIconsJson: true,
},
clientBundle: {
scan: {
globInclude: ["pages/*.vue", "app.vue"],