Skip to content
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

Allow hashDigestLength to be used by other loaders #10603

Closed
rightaway opened this issue Mar 25, 2020 · 2 comments
Closed

Allow hashDigestLength to be used by other loaders #10603

rightaway opened this issue Mar 25, 2020 · 2 comments

Comments

@rightaway
Copy link

Feature request

What is the expected behavior?
Every loader that uses [hash] needs to use [hash:10] to be consistent if webpack's options were set as output: { hashDigestLength: 10 } }. It would be better if loaders were able to use the same value by default if they choose to.

What is motivation or use case for adding/changing the behavior?
hashDigestLength should be able to be used by [hash] in file-loader and other loaders if they choose to, so that [hash] would by default have a length of 10.

How should this be implemented in your opinion?
In webpack/loader-utils#121 (comment) it says that the issue should be solved on the webpack side. There was also an issue in file-loader project which said it can't be solved there.

Are you willing to work on this yourself?

@alexander-akait
Copy link
Member

alexander-akait commented Mar 25, 2020

@rightaway Please read my answer in the issue, we already have an issue for providing some output options for loaders, no need duplicate

@rightaway
Copy link
Author

we already have an issue for providing some output options for loaders

Sorry I didn't see that issue you're referring to. It's not linked from webpack/loader-utils#121. Could you please link that issue here so I can follow the correct one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants