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

Commit

Permalink
fix(vite): remove client manifest.json from public dir (#7021)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 29, 2022
1 parent b386d46 commit af2835f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ export async function writeManifest (ctx: ViteBuildContext, css: string[] = [])

await fse.writeFile(resolve(serverDist, 'client.manifest.json'), JSON.stringify(manifest, null, 2), 'utf8')
await fse.writeFile(resolve(serverDist, 'client.manifest.mjs'), 'export default ' + JSON.stringify(manifest, null, 2), 'utf8')

if (!ctx.nuxt.options.dev) {
await fse.rm(resolve(clientDist, 'manifest.json'), { force: true })
}
}

0 comments on commit af2835f

Please sign in to comment.