-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use hash in filename? #56
Comments
What do you mean? Do you have some example config of what you want?
You're welcome, hope it's useful! |
In current version there is a 'hash' option in it right? I set it true and built, the file I defined in 'filepath' was copied into the output path and was referenced in the html generated with a hash as a query string such as `mydll.js?xxxxxxxxxxx`.
Is there an option make the hash to be inserted into the filename instead of just query string?
|
Ah, ok. That does not exist at the moment no. If you can figure out some API that's not too clunky, I'd be happy to merge a PR for it, though 😄 |
It seems that |
Yes, that's a good point. We'd have to either do some work in html-webpack-plugin, or doe something smart in this method: https://github.com/SimenB/add-asset-html-webpack-plugin/blob/e0ebc4c/src/addAllAssetsToCompilation.js#L24-L29 |
Hello. Is there any progress in the task? It will be useful for me. |
In my task, I need to use a hash of the compilation in the file name, so now I have to use |
Hi, |
I'd love to see a PR supporting this 🙂 |
if there is a CDN pointing to source host, abcd.css?t=1234 will not be updated to new content. |
Thank you for your great job!
Could I use the hash in the output file name just like
mydll.[hash].js
?The text was updated successfully, but these errors were encountered: