From 37aa806f30ed8f0c8ab4d67743cf34c325f5dde3 Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Fri, 6 Dec 2024 16:53:46 +0100 Subject: [PATCH 1/2] fix: `analyze` filenames not human readable --- src/commands/analyze.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/commands/analyze.ts b/src/commands/analyze.ts index 3658ca064..8d68873c6 100644 --- a/src/commands/analyze.ts +++ b/src/commands/analyze.ts @@ -48,6 +48,16 @@ export default defineCommand({ enabled: true, }, }, + vite: { + build: { + rollupOptions: { + output: { + chunkFileNames: '_nuxt/[name].[hash].js', + entryFileNames: '_nuxt/[name].[hash].js', + }, + }, + }, + }, logLevel: ctx.args.logLevel, }), }) From dae6e79d65f6ecaecf8078ca4d523dad2af9f0b3 Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Fri, 6 Dec 2024 17:26:42 +0100 Subject: [PATCH 2/2] fix: remove hash from build files entirely --- src/commands/analyze.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/analyze.ts b/src/commands/analyze.ts index 8d68873c6..c5c4c129a 100644 --- a/src/commands/analyze.ts +++ b/src/commands/analyze.ts @@ -52,8 +52,8 @@ export default defineCommand({ build: { rollupOptions: { output: { - chunkFileNames: '_nuxt/[name].[hash].js', - entryFileNames: '_nuxt/[name].[hash].js', + chunkFileNames: '_nuxt/[name].js', + entryFileNames: '_nuxt/[name].js', }, }, },