Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(vite): write dev manifest before spa build (#7380)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 9, 2022
1 parent e05f8ee commit 0ab29f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vite/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ab29f6

Please sign in to comment.