mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
perf(nuxt): don't update manifest in dev mode (#19315)
This commit is contained in:
parent
62b079a7d9
commit
503b7acd55
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user