Skip to content

Commit c09c0ce

Browse files
committed
Issue #1258 (docs)
Document `env` option for `eslint-import-resolver-webpack`
1 parent 753c9db commit c09c0ce

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

resolvers/webpack/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,16 @@ settings:
6666
- .js
6767
- .jsx
6868
```
69+
70+
If your config relies on [environment variables](https://webpack.js.org/guides/environment-variables/), they can be specified using the `env` parameter. If your config is a function, it will be invoked with the value assigned to `env`:
71+
72+
```yaml
73+
---
74+
settings:
75+
import/resolver:
76+
webpack:
77+
config: 'webpack.config.js'
78+
env:
79+
NODE_ENV: 'local'
80+
production: true
81+
```

0 commit comments

Comments
 (0)