From cfd994515359c5c8f1c114d4c3f1ad866a244300 Mon Sep 17 00:00:00 2001 From: zhaoruhui Date: Thu, 16 Oct 2025 16:19:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.js b/vite.config.js index 48161ef..22226c6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -35,9 +35,9 @@ export default defineConfig(({ mode, command }) => { management: './hcdbqb-management.html' }, output: { - manualChunks: undefined, - chunkFileNames: 'assets/[name]-[hash].js', - entryFileNames: 'assets/[name]-[hash].js' + entryFileNames: '[name].js', // 入口文件命名 + chunkFileNames: '[name].js', // 代码分割块命名 + assetFileNames: '[name].[ext]' // 静态资源命名 } } },