Skip to content

Commit 8ec4a17

Browse files
docs(configuration): add optimization.realContentHash (#3919)
1 parent 3e040b3 commit 8ec4a17

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/content/configuration/optimization.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,3 +571,20 @@ module.exports = {
571571
}
572572
};
573573
```
574+
575+
## `optimization.realContentHash`
576+
577+
`boolean = true`
578+
579+
Adds an additional hash compilation pass after the assets have been processed to get the correct asset content hashes. If `realContentHash` is set to `false`, internal data is used to calculate the hash and it can change when assets are identical.
580+
581+
__webpack.config.js__
582+
583+
```js
584+
module.exports = {
585+
//...
586+
optimization: {
587+
realContentHash: false
588+
}
589+
};
590+
```

0 commit comments

Comments
 (0)