Skip to content

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