File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ export default defineConfig({
5050 rollupOptions : {
5151 output : {
5252 // 使用更安全的文件命名,不暴露库名
53- chunkFileNames : 'static/js/[hash].js' ,
54- entryFileNames : 'static/js/[hash].js' ,
53+ chunkFileNames : 'static/js/[name]-[ hash].js' ,
54+ entryFileNames : 'static/js/[name]-[ hash].js' ,
5555 // 按文件类型进行拆分文件夹
56- assetFileNames : 'static/[ext]/[hash].[ext]' ,
56+ assetFileNames : 'static/[ext]/[name]-[ hash].[ext]' ,
5757 // 使用 rolldown 的 advancedChunks 进行高级代码分割
5858 advancedChunks : {
5959 groups : [
@@ -85,10 +85,10 @@ export default defineConfig({
8585 name : 'other-vendor' ,
8686 test : / n o d e _ m o d u l e s [ \\ / ] ( c l a s s n a m e s | @ i c o n i f y - i c o n | i 1 8 n e x t ) / ,
8787 } ,
88- {
89- name : 'vendor' ,
90- test : / n o d e _ m o d u l e s / ,
91- } ,
88+ // {
89+ // name: 'vendor',
90+ // test: /node_modules/,
91+ // },
9292 ] ,
9393 } ,
9494 } ,
You can’t perform that action at this time.
0 commit comments