mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(vite): write dev manifest before spa build (#7380)
This commit is contained in:
parent
e05f8ee126
commit
0ab29f6f2a
@ -168,14 +168,14 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Write dev client manifest
|
||||||
|
await writeManifest(ctx)
|
||||||
|
|
||||||
if (!ctx.nuxt.options.ssr) {
|
if (!ctx.nuxt.options.ssr) {
|
||||||
await onBuild()
|
await onBuild()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write dev client manifest
|
|
||||||
await writeManifest(ctx)
|
|
||||||
|
|
||||||
// Start development server
|
// Start development server
|
||||||
const viteServer = await vite.createServer(serverConfig)
|
const viteServer = await vite.createServer(serverConfig)
|
||||||
ctx.ssrServer = viteServer
|
ctx.ssrServer = viteServer
|
||||||
|
Loading…
Reference in New Issue
Block a user