Skip to content

Commit e20025d

Browse files
authored
docs: optimization.realContentHash default value (#7255)
1 parent df962ce commit e20025d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/content/configuration/optimization.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ contributors:
1414
- pixel-ray
1515
- chenxsan
1616
- Roberto14
17+
- hai-x
1718
related:
1819
- title: 'webpack 4: Code Splitting, chunk graph and the splitChunks optimization'
1920
url: https://medium.com/webpack/webpack-4-code-splitting-chunk-graph-and-the-splitchunks-optimization-be739a861366
@@ -422,9 +423,9 @@ module.exports = {
422423

423424
## optimization.realContentHash
424425

425-
`boolean = true`
426+
`boolean`
426427

427-
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.
428+
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. By default `optimization.realContentHash` is enabled in production mode and disabled elsewise.
428429

429430
**webpack.config.js**
430431

0 commit comments

Comments
 (0)