webpackstablechunkid
v0.2.0
Published
Keep chunk order defined in entry config, which result in stability of chunkhash
Downloads
9
Readme
WebpackStableChunkId
Keep 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.
Install
npm add webpackstablechunkid --save-dev
or
yarn add webpackstablechunkid --dev
Usage
In your webpack config file, import plugin:
var WebpackStableChunkId = require("webpackstablechunkid");
then add one record at top of plugins option:
new WebpackStableChunkId()
More
Here is a post to explain why we need it, and a demo test project for more details.
License
WebpackStableChunkId is freely distributable under the terms of the MIT license.