Skip to content

Commit 733e806

Browse files
committed
docs(plugins) splitChunks.name and splitChunks.test function return type
1 parent e114a40 commit 733e806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ T> `maxSize` takes higher priority than `maxInitialRequest/maxAsyncRequests`. Ac
163163

164164
### `splitChunks.name`
165165

166-
`boolean: true | function (module, chunks, cacheGroupKey) | string`
166+
`boolean: true | function (module, chunks, cacheGroupKey):string | string`
167167

168168
Also available for each cacheGroup: `splitChunks.cacheGroups.{cacheGroup}.name`.
169169

@@ -261,7 +261,7 @@ module.exports = {
261261

262262
#### `splitChunks.cacheGroups.{cacheGroup}.test`
263263

264-
`function (module, chunk) | RegExp | string`
264+
`function (module, chunk):boolean | RegExp | string`
265265

266266
Controls which modules are selected by this cache group. Omitting it selects all modules. It can match the absolute module resource path or chunk names. When a chunk name is matched, all modules in the chunk are selected.
267267

0 commit comments

Comments
 (0)