perf(nuxt): don't update manifest in dev mode (#19315)

This commit is contained in:
Daniel Roe 2023-02-27 20:36:27 +01:00 committed by GitHub
parent 62b079a7d9
commit 503b7acd55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,7 @@ export default defineNuxtModule({
// Do not prefetch page chunks // Do not prefetch page chunks
nuxt.hook('build:manifest', async (manifest) => { nuxt.hook('build:manifest', async (manifest) => {
if (nuxt.options.dev) { return }
const pages = await resolvePagesRoutes() const pages = await resolvePagesRoutes()
await nuxt.callHook('pages:extend', pages) await nuxt.callHook('pages:extend', pages)