Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
docs: add multi vars example to README (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
devuxer committed May 20, 2020
1 parent 9a5a9bd commit bddb4d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -81,6 +81,16 @@ webpack --config build/webpack.config.js

The `NODE_ENV` environment variable will be set by `cross-env`

You can set multiple environment variables at a time:

```json
{
"scripts": {
"build": "cross-env FIRST_ENV=one SECOND_ENV=two node ./my-program"
}
}
```

You can also split a command into several ones, or separate the environment
variables declaration from the actual command execution. You can do it this way:

Expand Down

0 comments on commit bddb4d5

Please sign in to comment.