mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(vite): remove client manifest.json
from public dir (#7021)
This commit is contained in:
parent
b386d4618c
commit
af2835fa7f
@ -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 })
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user