From 71c4edad635a971f3bf89f97caab3b820589b290 Mon Sep 17 00:00:00 2001 From: No name <88119911+doraemonxxx@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:26:49 +0800 Subject: [PATCH] chore: improve build file naming convention and caching (#3908) * fix: improve build file naming convention * remove js to the entryFileName path * replace dot to hyphen --- internal/vite-config/src/config/application.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/vite-config/src/config/application.ts b/internal/vite-config/src/config/application.ts index 206c66a90..7ee5ef1dc 100644 --- a/internal/vite-config/src/config/application.ts +++ b/internal/vite-config/src/config/application.ts @@ -63,8 +63,8 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) { cssTarget: 'chrome80', rollupOptions: { output: { - // 入口文件名(不能变,否则所有打包的 js hash 值全变了) - entryFileNames: 'index.js', + // 入口文件名 + entryFileNames: 'assets/entry/[name]-[hash].js', manualChunks: { vue: ['vue', 'pinia', 'vue-router'], antd: ['ant-design-vue', '@ant-design/icons-vue'],