File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -71,17 +71,19 @@ export async function bundle(
7171 output : {
7272 sanitizeFileName,
7373 ...rollupOptions ?. output ,
74+ assetFileNames : 'assets/[name].[hash].[ext]' ,
7475 ...( ssr
7576 ? {
76- entryFileNames : ` [name].js` ,
77- chunkFileNames : ` [name].[hash].js`
77+ entryFileNames : ' [name].js' ,
78+ chunkFileNames : ' [name].[hash].js'
7879 }
7980 : {
81+ entryFileNames : 'assets/[name].[hash].js' ,
8082 chunkFileNames ( chunk ) {
8183 // avoid ads chunk being intercepted by adblock
8284 return / (?: C a r b o n | B u y S e l l ) A d s / . test ( chunk . name )
83- ? ` assets/chunks/ui-custom.[hash].js`
84- : ` assets/chunks/[name].[hash].js`
85+ ? ' assets/chunks/ui-custom.[hash].js'
86+ : ' assets/chunks/[name].[hash].js'
8587 } ,
8688 manualChunks ( id , ctx ) {
8789 // move known framework code into a stable chunk so that
You can’t perform that action at this time.
0 commit comments