build: 更新构建配置优化输出文件结构

修改nuxt配置关闭preserveModules以减少构建文件数量
调整package.json脚本简化构建流程
更新构建输出文件结构,清理旧文件并生成新文件
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-07-08 17:03:08 +08:00
parent 335d6cb1fb
commit 205252739c
192 changed files with 11322 additions and 7526 deletions

View File

@@ -0,0 +1,22 @@
import { hasInjectionContext, inject } from 'vue';
import { L as tryUseNuxtApp } from './server.mjs';
import { u as useHead$1, h as headSymbol } from '../routes/renderer.mjs';
function injectHead(nuxtApp) {
var _a;
const nuxt = nuxtApp || tryUseNuxtApp();
return ((_a = nuxt == null ? void 0 : nuxt.ssrContext) == null ? void 0 : _a.head) || (nuxt == null ? void 0 : nuxt.runWithContext(() => {
if (hasInjectionContext()) {
return inject(headSymbol);
}
}));
}
function useHead(input, options = {}) {
const head = injectHead(options.nuxt);
if (head) {
return useHead$1(input, { head, ...options });
}
}
export { useHead as u };
//# sourceMappingURL=v3-CKwuViaV.mjs.map