-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
removeKeyHash doesn't work with compression-webpack-plugin #241
Comments
I'm stretched a little thin at the moment so would appreciate a PR to resolve this. |
not sure if it's related directly to the
solved it for me in what I think should be a backwards compatible way for a range of 20-32 char hashes. I don't know enough about the hash lengths to say what the minimum should be, but this at least works so if we're happy with that I could try to submit a pr. |
I'm willing to submit a PR @shellscape, but I first want to ensure that you agree with this opinion. |
@cascornelissen sounds reasonable to me. will this introduce any breaking changes? |
It could, in theory, but that applies to the arbitrary length of 32 as well because any string could match with the regex (as long as it's within the |
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ |
Expected Behavior
Using compression-webpack-plugin with webpack-manifest-plugin and setting the option
removeKeyHash
astrue
should remove hashes from files generated by the compression plugin.Actual Behavior
Files generated by compression-webpack-plugin have hashes in the name of the file:
Additional Information
As per #231 I wasn't able to test it in Manifest version 3.
Also, adding a map like
Fixes the issue, but it would be great if it would be done automatically without having to add a map function.
It would also be great if it could be done automatically independent of the hash size. It should work for
filename: '[name].[hash].js'
and also forfilename: '[name].[hash:8].js'
The text was updated successfully, but these errors were encountered: