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

Add multi vars example to README #240

Merged
merged 1 commit into from May 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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