Skip to content

Commit 5daeb5a

Browse files
authored
!perf: change webpack hash function to improve speed of hash calculation (#6643)
* perf: change webpack hash function to improve speed of hash calculation * !perf: change webpack hash function to improve speed of hash calculation
1 parent 2c1d92a commit 5daeb5a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webpack.common.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,6 @@ export default ({ ssg = false }) => ({
148148
path: path.resolve(__dirname, './dist'),
149149
publicPath: '/',
150150
filename: '[name].bundle.js',
151+
hashFunction: 'xxhash64'
151152
},
152153
});

webpack.prod.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default (env) =>
2222
},
2323
},
2424
output: {
25-
filename: '[name].[contenthash].js',
25+
filename: '[name].[contenthash].js'
2626
},
2727
optimization: {
2828
splitChunks: {

0 commit comments

Comments
 (0)