https://github.com/thundernet8/webpackstablechunkid
Keep chunk order defined in entry config, which result in stability of chunkhash
https://github.com/thundernet8/webpackstablechunkid
Last synced: over 1 year ago
JSON representation
Keep chunk order defined in entry config, which result in stability of chunkhash
- Host: GitHub
- URL: https://github.com/thundernet8/webpackstablechunkid
- Owner: thundernet8
- License: mit
- Created: 2017-07-10T10:06:05.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-22T04:14:39.000Z (over 8 years ago)
- Last Synced: 2024-10-11T22:39:14.172Z (over 1 year ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/thundernet8/Blog/issues/2) to explain why we
need it, and a
[demo test project](https://github.com/thundernet8/WebpackHashTest) for more
details.
## License
WebpackStableChunkId is freely distributable under the terms of the
[MIT license](https://github.com/thundernet8/WebpackStableChunkId/blob/master/LICENSE).
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fthundernet8%2FWebpackStableChunkId?ref=badge_large)