From 503b7acd554fd90949d7c58ca35a6d796b42542f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 27 Feb 2023 20:36:27 +0100 Subject: [PATCH] perf(nuxt): don't update manifest in dev mode (#19315) --- packages/nuxt/src/pages/module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nuxt/src/pages/module.ts b/packages/nuxt/src/pages/module.ts index ea8d13ae3d..f7e85439ab 100644 --- a/packages/nuxt/src/pages/module.ts +++ b/packages/nuxt/src/pages/module.ts @@ -152,6 +152,7 @@ export default defineNuxtModule({ // Do not prefetch page chunks nuxt.hook('build:manifest', async (manifest) => { + if (nuxt.options.dev) { return } const pages = await resolvePagesRoutes() await nuxt.callHook('pages:extend', pages)