feat: 管理后台更新(love 页配置、about/upload 接口、profile 页)
This commit is contained in:
@@ -2,6 +2,7 @@ import { defineConfig, loadEnv } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import UnoCSS from 'unocss/vite'
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
import mdiIcons from '@iconify-json/mdi/icons.json' with { type: 'json' }
|
||||
import {
|
||||
extractorSplit,
|
||||
presetAttributify,
|
||||
@@ -57,6 +58,11 @@ export default defineConfig(({ mode }) => {
|
||||
presetIcons({
|
||||
scale: 1.2,
|
||||
warn: true,
|
||||
// 显式绑定本地 mdi 图标集(静态导入避免运行时动态 import JSON 报 ERR_IMPORT_ATTRIBUTE_MISSING),
|
||||
// 不再依赖编辑器环境探测(此前用 delete process.env.VSCODE_CWD 规避)
|
||||
collections: {
|
||||
mdi: () => mdiIcons,
|
||||
},
|
||||
}),
|
||||
],
|
||||
transformers: [
|
||||
|
||||
Reference in New Issue
Block a user