From 51e6ebfb6a050a0f81b8919737f3504264696324 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Wed, 18 Mar 2026 14:36:49 +0800 Subject: [PATCH] =?UTF-8?q?chore(=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6):=20?= =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E6=9B=B4=E6=96=B0=EF=BC=8C=E4=BE=9D=E6=97=A7?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=BC=83=E7=94=A8=E7=9A=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.js b/vite.config.js index a8396a5..632246d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -27,9 +27,9 @@ export default defineConfig({ entryFileNames: `js/[name]-[hash]-${Date.now()}.js`, chunkFileNames: `js/[name]-[hash]-${Date.now()}.js`, assetFileNames: (assetInfo) => { - const info = assetInfo.fileName.split('.') + const info = assetInfo.name.split('.') const ext = info[info.length - 1] - if (/\.(css)$/.test(assetInfo.fileName)) { + if (/\.(css)$/.test(assetInfo.name)) { return `css/[name]-[hash]-${Date.now()}.[ext]` } return `assets/[name]-[hash]-${Date.now()}.[ext]`