Skip to content

Commit 8518cbb

Browse files
weaverryanEugeneHlushko
authored andcommitted
Adding a note about splitChunks.name = false functionality (#2672)
1 parent c7b65f0 commit 8518cbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/plugins/split-chunks-plugin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ T> `maxSize` takes higher priority than `maxInitialRequest/maxAsyncRequests`. Ac
166166

167167
The name of the split chunk. Providing `true` will automatically generate a name based on chunks and cache group key. Providing a string or function will allow you to use a custom name. If the name matches an entry point name, the entry point will be removed.
168168

169+
T> It is recommended to set `splitChunks.name` to `false` for production builds so that it doesn't change names unnecessarily.
170+
169171
__webpack.config.js__
170172

171173
```js

0 commit comments

Comments
 (0)