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

fix(vite): remove client manifest.json from public dir #7021

Merged
merged 2 commits into from
Aug 29, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) {
fse.removeSync(resolve(clientDist, 'manifest.json'))
pi0 marked this conversation as resolved.
Show resolved Hide resolved
}
}