From 0ab29f6f2abc3fc77fbb8fc1c2bf3d755c8d0537 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 9 Sep 2022 11:28:07 +0100 Subject: [PATCH] fix(vite): write dev manifest before spa build (#7380) --- packages/vite/src/server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vite/src/server.ts b/packages/vite/src/server.ts index f21beb3581..947d6389af 100644 --- a/packages/vite/src/server.ts +++ b/packages/vite/src/server.ts @@ -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