Skip to content

Commit

Permalink
phoenix-webapp: Fix assets' hashes length
Browse files Browse the repository at this point in the history
  • Loading branch information
dev committed Dec 6, 2023
1 parent 69c660d commit a5c88ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phoenix-webapp/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export default defineConfig({
output: {
// we use the full hashes to reduces the risk of collision with assets cached for long time
assetFileNames(chunkInfo) {
return `webapp/[name]-[hash:32][extname]`;
return `webapp/[name]-[hash:22][extname]`;
},
chunkFileNames(chunkInfo) {
return `webapp/[name]-[hash:32].js`;
return `webapp/[name]-[hash:22].js`;
},
entryFileNames(chunkInfo) {
return `webapp/[name]-[hash:32].js`;
return `webapp/[name]-[hash:22].js`;
},
},
},
Expand Down

0 comments on commit a5c88ca

Please sign in to comment.