Skip to content

Commit b1eab99

Browse files
committed
add doc about target as a function
1 parent 71f7703 commit b1eab99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/configuration/target.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ webpack can compile for multiple environments or _targets_. To understand what a
1313

1414
## `target`
1515

16-
`string`
16+
`string | function(compiler)`
1717

18-
Tells webpack which environment the application is targeting. The following values are supported via [`WebpackOptionsApply`](https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js):
18+
Tells webpack which environment the application is targeting. If it's a `function`, then it will be called with the compiler as a parameter. If it's a `string`, then the following values are supported via [`WebpackOptionsApply`](https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsApply.js):
1919

2020
| `target` | Description |
2121
| ------------- |------------------------|

0 commit comments

Comments
 (0)