From bde10de12c71700a312613cc33c65b126a089b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B4=9B=E5=B8=8C=E9=9B=85?= Date: Thu, 25 Apr 2024 08:48:35 +0800 Subject: [PATCH] vite.config.ts --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 6b98142..b2a9941 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -127,9 +127,9 @@ export default defineConfig(({ command, mode }: ConfigEnv): UserConfig => { assetsDir: 'static/assets', rollupOptions: { output: { - chunkFileNames: 'static/js/[name]-[hash].js', - entryFileNames: 'static/js/[name]-[hash].js', - assetFileNames: 'static/[ext]/[name]-[hash].[ext]' + chunkFileNames: 'static/js/chunk-[hash].js', + entryFileNames: 'static/js/index.js', + assetFileNames: 'static/[ext]/[hash].[ext]' } } },