feat(manifest): 删除无用文件

This commit is contained in:
chengcheng 2025-08-20 15:15:41 +08:00
parent 3443a50025
commit 0411816b2e
4 changed files with 2 additions and 15 deletions

View File

@ -1,4 +0,0 @@
import { loadRemoteStyle } from "./utils/loadStyle";
// 动态注入 Tailwind CSS
loadRemoteStyle("/_remote-ui-kit/style.css"); // 部署后对应 CSS URL

View File

@ -66,7 +66,7 @@ export default defineNuxtConfig({
],
build: {
lib: {
entry: "./index.ts",
entry: "",
name: "RemoteUI",
fileName: "remote-ui-kit",
formats: ["es"],

View File

@ -17,7 +17,7 @@ export default defineEventHandler(async (event) => {
try {
// Nuxt buildDir 是 .nuxt
const manifestPath = join(process.cwd(), ".nuxt/generated/manifest");
const manifestPath = join(process.cwd(), ".nuxt/generated/manifest.js");
// 检查文件是否存在
await fs.access(manifestPath);

View File

@ -1,9 +0,0 @@
export function loadRemoteStyle(url: string) {
if (!document.getElementById(url)) {
const link = document.createElement("link");
link.id = url;
link.rel = "stylesheet";
link.href = url;
document.head.appendChild(link);
}
}