mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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
|
||||
}
|
||||
|
||||
// Write dev client manifest
|
||||
await writeManifest(ctx)
|
||||
|
||||
if (!ctx.nuxt.options.ssr) {
|
||||
await onBuild()
|
||||
return
|
||||
}
|
||||
|
||||
// Write dev client manifest
|
||||
await writeManifest(ctx)
|
||||
|
||||
// Start development server
|
||||
const viteServer = await vite.createServer(serverConfig)
|
||||
ctx.ssrServer = viteServer
|
||||
|
Loading…
Reference in New Issue
Block a user