docs: add multi vars example to README (#240)

This commit is contained in:
devuxer
2020-05-20 16:38:41 -06:00
committed by GitHub
parent 7ba7903821
commit 71a0210447
+10
View File
@@ -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: