esbuild - how do I add hashes to output files? #2789
Unanswered
DouglasDev
asked this question in
Troubleshooting
Replies: 2 comments
-
It looks like this was just recently added as a feature to esbuild, so 🤞 snowpack will find a way to enable it! evanw/esbuild#1001 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Another discussion on this: #3131 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to switch over to esbuild from webpack from my bundler. Overall, esbuild works very well except my files are being outputted without a hash. For example, webpack would output
index.js
asindex.[hash].js
whereas esbuild always leaves the output file name unchanged. This is causing issues with the browser serving stale cached files. Is there currently any way to enable hashing in the "optimize" config (esbuild appears to already support this)? Or would I need to write a separate plugin? (I've tried the two existing content hashing plugins and had issues with both of them)Beta Was this translation helpful? Give feedback.
All reactions