Skip to content

Commit

Permalink
feat(web): Use contenthash for assets
Browse files Browse the repository at this point in the history
Use `contenthash` when hashing assets for long-term caching.
  • Loading branch information
langri-sha committed Jun 20, 2024
1 parent cac2ce8 commit 823ddfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default env(({ development, environment, production, publicPath }) => ({
resolveLoader,
output: {
crossOriginLoading: 'anonymous',
filename: script(`[name]${production ? '.[chunkhash].min' : ''}.js`),
filename: script(`[name]${production ? '.[contenthash].min' : ''}.js`),
path: path.resolve(__dirname, 'dist'),
publicPath,
hashFunction: 'xxhash64',
Expand Down

0 comments on commit 823ddfd

Please sign in to comment.