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

use HashedModuleIdsPlugin to keep module ids consistent #406

Closed
wants to merge 1 commit into from
Closed

use HashedModuleIdsPlugin to keep module ids consistent #406

wants to merge 1 commit into from

Conversation

lmk123
Copy link

@lmk123 lmk123 commented Dec 11, 2016

As webpack/webpack#1315 (comment) mentioned:

The OccurenceOrderPlugin orders the modules in a way that most referenced modules come first and the order is the same for each compilation. This way the bundle size is as small as possible. If you change your code in a way that adds or removes modules it will affect all module ids.

I suggest use HashedModuleIdsPlugin (which introduce on webpack/webpack#1315 (comment)) to keep module ids consistent between compilations and not be affected by adds or removes modules, so hash will be more stable.

Related comments:

@LinusBorg
Copy link
Contributor

closing because it's deprecated, webpack has this as a real plugin now.

@LinusBorg LinusBorg closed this Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants