0.2.0 • Published 6 years ago

webpackstablechunkid v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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.

FOSSA Status