Keep chunk order defined in entry config, which result in stability of chunkhash
npm install webpackstablechunkidKeep chunk order defined in entry config, which result in stability of
chunkhash.
As official hashedmoduleidsplugin just use hash value instead number ids for
modules, exclude entry chunks. Entry chunks order may change in sometime, which
lead to a unstability of chunkhash, this is the problem we resolve.
```
npm add webpackstablechunkid --save-dev
or
``
yarn add webpackstablechunkid --dev
In your webpack config file, import plugin:
``
var WebpackStableChunkId = require("webpackstablechunkid");
then add one record at top of plugins option:
```
new WebpackStableChunkId()
Here is a post to explain why we
need it, and a
demo test project for more
details.
WebpackStableChunkId is freely distributable under the terms of the
MIT license.
