Skip to content

Commit

Permalink
worker chunk names
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Mar 9, 2024
1 parent d6b3ee2 commit 5af8ffc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/webpack/optimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ module.exports = isDev => ({
// .identifier()
// .split('/')
// .reduceRight(item => item);
const allChunksNames = chunks.map(item => item.name).join('~');
const allChunksNames = chunks
.map(item => item.name || item.debugId)
.join('~');
// return `${cacheGroupKey}--${allChunksNames}--${moduleFileName}`;
// return `${cacheGroupKey}--${allChunksNames}`;
return `vendors-${allChunksNames}`;
Expand Down

0 comments on commit 5af8ffc

Please sign in to comment.