From 40d090745bfe4a816dbf9f587d210c3af32e47a9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 13 Sep 2022 22:57:58 +0100 Subject: [PATCH] fix(nuxt): only delete assets when building (#7486) --- packages/nuxt/src/core/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index 74cc1fb793..f4192f34c0 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -92,7 +92,7 @@ async function initNuxt (nuxt: Nuxt) { } // TODO: [Experimental] Avoid emitting assets when flag is enabled - if (nuxt.options.experimental.noScripts) { + if (nuxt.options.experimental.noScripts && !nuxt.options.dev) { nuxt.hook('build:manifest', async (manifest) => { for (const file in manifest) { if (manifest[file].resourceType === 'script') {