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

Whether to consider supporting HashedModuleIdsPlugin by default #247

Open
Jef-Z opened this issue Aug 13, 2021 · 1 comment
Open

Whether to consider supporting HashedModuleIdsPlugin by default #247

Jef-Z opened this issue Aug 13, 2021 · 1 comment

Comments

@Jef-Z
Copy link

Jef-Z commented Aug 13, 2021

Hello,thank you for the rekit framework!

Would you consider adding HashedModuleIdsPlugin to the default webpack configuration of the rekit framework?

plugins: [
    ...
    new webpack.HashedModuleIdsPlugin(),
].filter(Boolean),

HashedModuleIdsPlugin : This plugin will cause hashes to be based on the relative path of the module, generating a four character string as the module id. Suggested for use in production.

It can stabilize webpack's hash, ensure that the hash value of unchanged files is the same, and make full use of the browser's caching mechanism.

@DonaldFoss
Copy link

If we pack is creating a bundle, does it really matter? Unless you're saying the chunking would be different... I applaud better use of caching at every level so long as it can be expired at will.

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