(EDITED)
Using entryFileNames: 'index.js' in Vite is generally not recommended due to several issues:
Debugging Difficulty: Identical filenames make debugging harder as they don't reflect their origin or purpose.
Advantages of using [name]-[hash]
Clarity: Each output file retains a clear connection to its entry file, making it easier to identify what each file corresponds to.
Consistency: This naming convention is more consistent if you have many files, as each file keeps its original name with a hash appended, making the build output more organized and predictable.
Also in Dockerfile it uses entry directory
CMD sed -i "s|__vg_base_url|$VG_BASE_URL|g" /usr/share/nginx/html/dist/assets/entry/index-*.js
Reference issue: https://github.com/vbenjs/vue-vben-admin/issues/3905 In revision: https://github.com/vbenjs/vue-vben-admin/commit/a6086f4cc8f33fea7431f3d39eb73dda20c325bd
(EDITED) Using
entryFileNames: 'index.js'
in Vite is generally not recommended due to several issues:Advantages of using
[name]-[hash]
Also in Dockerfile it uses
entry
directoryhttps://github.com/vbenjs/vue-vben-admin/blob/8d3981f599f073b226c822a8d28af9aecf00a667/Dockerfile#L23C2-L23C99
General
Type
Checklist