-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: remove the hash calculation if hash exists #159
Conversation
Remove the hash calculation and use the one already present in the `compilation` object (created in `HtmlWebpackPlugin`).
Thanks! This makes sense to me, I didn't know a hash was included. Could you add a test to fix test coverage? Just adding a |
Codecov Report
@@ Coverage Diff @@
## master #159 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 2 2
Lines 56 58 +2
Branches 13 14 +1
=====================================
+ Hits 56 58 +2
Continue to review full report at Codecov.
|
Could we remove the hash options and just let this plugin inherit the setting from the |
@SimenB what do you think about my proposal? ^ |
Co-authored-by: Ivan Vasilov <ivan@hfour.com>
Remove the hash calculation and use the one already present in the
compilation
object (created inHtmlWebpackPlugin
).The
hash
option doesn't make sense because this plugin is used withHtmlWebpackPlugin
and should inherit its option, not have a separate one. I can't think of a case where you would like different behavior (on hashes) for files included with this plugin.