From cd25e15eb67b2c83e480ec999aec0544506f88d0 Mon Sep 17 00:00:00 2001 From: carefree0910 Date: Sat, 13 May 2023 12:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=E2=9A=A1=EF=B8=8FPrevente?= =?UTF-8?q?d=20adding=20hash=20during=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To make it load-balance friendly. --- cfdraw/.web/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cfdraw/.web/vite.config.ts b/cfdraw/.web/vite.config.ts index 32cf6c37..d09ecd14 100644 --- a/cfdraw/.web/vite.config.ts +++ b/cfdraw/.web/vite.config.ts @@ -46,6 +46,9 @@ export default defineConfig({ build: { rollupOptions: { output: { + entryFileNames: "assets/[name].js", + chunkFileNames: "assets/[name].js", + assetFileNames: "assets/[name].[ext]", manualChunks: { axios: ["axios"], jszip: ["jszip"],