From e6d9be15dea1caead6f0a45b772733bf8d5e514d Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 14 Sep 2023 19:14:16 -0500 Subject: [PATCH] vite: reorganize output directory --- vite.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index d13a71d881..05c3511719 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,6 +14,13 @@ export default defineConfig({ outDir: '../static', assetsDir: 'packs', assetsInlineLimit: 0, + rollupOptions: { + output: { + assetFileNames: 'packs/assets/[name]-[hash].[ext]', + chunkFileNames: 'packs/js/[name]-[hash].js', + entryFileNames: 'packs/[name]-[hash].js', + }, + }, }, server: { port: 3036,