Skip to content

Commit

Permalink
perf(nuxt): don't update manifest in dev mode (#19315)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 27, 2023
1 parent 62b079a commit 503b7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nuxt/src/pages/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 503b7ac

Please sign in to comment.