Skip to content

Commit

Permalink
Issue #1258 (docs)
Browse files Browse the repository at this point in the history
Document `env` option for `eslint-import-resolver-webpack`
  • Loading branch information
kgregory committed May 15, 2019
1 parent 753c9db commit c09c0ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resolvers/webpack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,16 @@ settings:
- .js
- .jsx
```
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`:

```yaml
---
settings:
import/resolver:
webpack:
config: 'webpack.config.js'
env:
NODE_ENV: 'local'
production: true
```

0 comments on commit c09c0ce

Please sign in to comment.