Skip to content

Commit

Permalink
chore: improve build file naming convention and caching (#3908)
Browse files Browse the repository at this point in the history
* fix: improve build file naming convention

* remove js to the entryFileName path

* replace dot to hyphen
  • Loading branch information
doraemonxxx authored Jun 14, 2024
1 parent 65fba1c commit 71c4eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/vite-config/src/config/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 71c4eda

Please sign in to comment.