Compare commits
2 Commits
3ee3a5cf77
...
6e3253af8c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6e3253af8c | ||
![]() |
68e6b11e99 |
@ -23,7 +23,7 @@ export default defineNuxtModule({
|
|||||||
|
|
||||||
const remoteEntry = `remoteEntry_${pkg.version}.js`;
|
const remoteEntry = `remoteEntry_${pkg.version}.js`;
|
||||||
|
|
||||||
const outPath = path.join(process.cwd(), ".nuxt/generated/manifest.js"); // 固定目录
|
const outPath = path.join(nuxt.options.rootDir, "public/generated/manifest.js");
|
||||||
|
|
||||||
fs.mkdirSync(path.dirname(outPath), { recursive: true });
|
fs.mkdirSync(path.dirname(outPath), { recursive: true });
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
|
@ -82,7 +82,7 @@ export default defineNuxtConfig({
|
|||||||
let manifest;
|
let manifest;
|
||||||
try {
|
try {
|
||||||
// Nuxt buildDir 是 .nuxt
|
// Nuxt buildDir 是 .nuxt
|
||||||
const manifestPath = join(process.cwd(), ".nuxt/generated/manifest.js");
|
const manifestPath = join(process.cwd(), "public/generated/manifest.js");
|
||||||
|
|
||||||
// 检查文件是否存在
|
// 检查文件是否存在
|
||||||
await fs.access(manifestPath);
|
await fs.access(manifestPath);
|
||||||
|
@ -64,5 +64,6 @@
|
|||||||
"rollup-plugin-postcss": "^4.0.2",
|
"rollup-plugin-postcss": "^4.0.2",
|
||||||
"sass": "1.77.7",
|
"sass": "1.77.7",
|
||||||
"vite-plugin-top-level-await": "^1.6.0"
|
"vite-plugin-top-level-await": "^1.6.0"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
|
||||||
}
|
}
|
@ -17,7 +17,7 @@ export default defineEventHandler(async (event) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Nuxt buildDir 是 .nuxt
|
// Nuxt buildDir 是 .nuxt
|
||||||
const manifestPath = join(process.cwd(), ".nuxt/generated/manifest.js");
|
const manifestPath = join(process.cwd(), "public/generated/manifest.js");
|
||||||
|
|
||||||
// 检查文件是否存在
|
// 检查文件是否存在
|
||||||
await fs.access(manifestPath);
|
await fs.access(manifestPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user