Skip to content

Commit

Permalink
!perf: change webpack hash function to improve speed of hash calculat…
Browse files Browse the repository at this point in the history
…ion (#6643)

* perf: change webpack hash function to improve speed of hash calculation

* !perf: change webpack hash function to improve speed of hash calculation
  • Loading branch information
WarrenLee19 authored Feb 15, 2023
1 parent 2c1d92a commit 5daeb5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions webpack.common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,6 @@ export default ({ ssg = false }) => ({
path: path.resolve(__dirname, './dist'),
publicPath: '/',
filename: '[name].bundle.js',
hashFunction: 'xxhash64'
},
});
2 changes: 1 addition & 1 deletion webpack.prod.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default (env) =>
},
},
output: {
filename: '[name].[contenthash].js',
filename: '[name].[contenthash].js'
},
optimization: {
splitChunks: {
Expand Down

0 comments on commit 5daeb5a

Please sign in to comment.