Skip to content

Commit

Permalink
[Docs] Document env option for eslint-import-resolver-webpack
Browse files Browse the repository at this point in the history
Merge pull request #1363 from kgregory/webpack-resolver-doc-env

Fixes #1258.
  • Loading branch information
ljharb committed May 16, 2019
2 parents 753c9db + c09c0ce commit c8ac7ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resolvers/webpack/README.md
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 c8ac7ff

Please sign in to comment.