Get a build manifest
Hello, I'm trying to generate a JSON manifest from the generated files to import them into another project, and I was wondering if there's a way to get a clean manifest. I've looked in the documentation, but I can't seem to get one. I've attached my nuxt.config.ts file. If you have any ideas, I'd appreciate it.
2 Replies
Hi @Cogal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources do not provide explicit instructions or documentation on how to generate a clean JSON build manifest from Nuxt's generated files for import into another project.
However, there are some related details:
- Nuxt internally generates a manifest file (such as
manifest.json or meta.json) in the build output, for example at /.nuxt/dist/client/manifest.json or /_nuxt/builds/meta.json, which is used for internal purposes like route rules and payload loading. These files are not documented as public APIs and their structure may change between versions, so relying on them for external use is not officially supported or documented in the sources provided fix(nuxt): experimental build manifest + client route rules.
- There are PRs and discussions about preloading and handling the app manifest, but they focus on Nuxt's internal usage and do not describe a user-facing way to export or customize the manifest for external consumption perf(nuxt): preload app manifest.
If you need a manifest of your generated files, you may need to write a custom script to scan the output directory (such as .output/public/ for static builds or .nuxt/dist/client/ for client assets) and generate your own JSON manifest. The knowledge sources do not provide a built-in Nuxt feature for this use case.
If you have a specific structure in mind for the manifest, or if you can clarify your requirements, I can try to help further based on the available information.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@269964207363981313> Kapa.ai is still learning and improving, please let me know how I did by reacting below.