Skip to content

Commit 5d85a2f

Browse files
committed
docs: currentEnvironment in webpack loader
1 parent d382a5a commit 5d85a2f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/guide/webpack/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,9 @@ if (validateConfig.errors) {
156156
document.body.innerHTML = `<pre>${JSON.stringify(fullConfig, null, 2)}</pre>`;
157157
}
158158
```
159+
160+
### Environments
161+
162+
The webpack loader will give you access to the `currentEnvironment` function,
163+
returning the environment as it was detected when your web bundle was built.
164+
Note that function arguments are ignored.

0 commit comments

Comments
 (0)