File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,11 @@ export function createDependencyChunksPlugin(dependencies: string[] | string[][]
1111 const { output } = config . build . rollupOptions
1212 const outputConfig = Array . isArray ( output ) ? output [ 0 ] : output
1313 outputConfig . manualChunks = outputConfig . manualChunks || { }
14- outputConfig . assetFileNames = "assets/[name].[hash][extname]"
14+ outputConfig . assetFileNames = "assets/[name].[hash:6 ][extname]"
1515 outputConfig . chunkFileNames = ( chunkInfo ) => {
16- return chunkInfo . name . startsWith ( "vendor/" ) ? "[name].[hash].js" : "assets/[name].[hash].js"
16+ return chunkInfo . name . startsWith ( "vendor/" )
17+ ? "[name].[hash].js"
18+ : "assets/[name].[hash:9].js"
1719 }
1820
1921 const manualChunks = Array . isArray ( output ) ? output [ 0 ] . manualChunks : output . manualChunks
@@ -22,7 +24,7 @@ export function createDependencyChunksPlugin(dependencies: string[] | string[][]
2224
2325 dependencies . forEach ( ( dep , index ) => {
2426 if ( Array . isArray ( dep ) ) {
25- const chunkName = `vendor/a ${ index } `
27+ const chunkName = `vendor/${ index } `
2628 manualChunks [ chunkName ] = dep
2729 } else {
2830 manualChunks [ `vendor/${ dep } ` ] = [ dep ]
Original file line number Diff line number Diff line change 99 "destination" : " /__debug_proxy.html"
1010 },
1111 {
12- "source" : " /(.*)" ,
12+ "source" : " /((?!assets|vendor|locales/) .*)" ,
1313 "destination" : " /index.html"
1414 }
1515 ],
You can’t perform that action at this time.
0 commit comments