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

Hashed chunk ids #8355

Closed
smelukov opened this issue Nov 8, 2018 · 4 comments
Closed

Hashed chunk ids #8355

smelukov opened this issue Nov 8, 2018 · 4 comments

Comments

@smelukov
Copy link
Member

smelukov commented Nov 8, 2018

Feature request

What is the expected behavior?

Hashed chunk ids

What is motivation or use case for adding/changing the behavior?

After this PR we have got better long-term caching "out of the box", but we have many chunks and they have numeric ids and these ids changes very often and it still affects long-term caching.

Named chunk ids is too large

How should this be implemented in your opinion?

Clone HashedModuleIdsPlugin with the same login and adopt it for chunks. It looks like an easy solution...

Are you willing to work on this yourself?
yes

@sokra
Copy link
Member

sokra commented Nov 11, 2018

There is a open card for this in the webpack 5 project.

Better skip the hashed chunk ids and use the deterministic chunk ids algorithm similar to modules.

deterministic chunk ids is based on named chunk ids + the hashing part.

@smelukov
Copy link
Member Author

Are you about clone the DeterministicModuleIds and adopt it for chunks?

@sokra
Copy link
Member

sokra commented Nov 11, 2018

Currently not, but this is planned. But you can go ahead and send a PR.

@smelukov
Copy link
Member Author

👌

smelukov added a commit to smelukov/webpack that referenced this issue Nov 13, 2018
smelukov added a commit to smelukov/webpack that referenced this issue Nov 13, 2018
smelukov added a commit to smelukov/webpack that referenced this issue Nov 13, 2018
@vankop vankop closed this as completed Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants