-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
HookWebpackError: filenameForRelatedName.indexOf is not a function #240
Comments
Yep, bug |
Just interesting - why do you use it as function? |
@alexander-akait I'm using a different |
Yep, I will fix it tomorrow, thanks for the issue |
6 tasks
@alexander-akait Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
The plugin to compress data as expected.
Actual Behavior
webpack crashes wtih a HookWebpackError after the plugin tries to access the
indexOf
of a function.Code
How Do We Reproduce?
Apparently it happens if
algorithm
andfilename
properties are both defined as functions.I could be missing something but it seems the case where
filename
is a function is being ignored in the section bellow.compression-webpack-plugin/src/index.js
Lines 128 to 131 in 44c16e2
The text was updated successfully, but these errors were encountered: